From 1923281df03373c1975f569402a43399d4f0abb2 Mon Sep 17 00:00:00 2001 From: Nabin Kawan Date: Tue, 11 Jun 2024 16:16:33 +0545 Subject: [PATCH 1/2] chore: Add auth token config for pdf-ui --- .github/workflows/test_storybook.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_storybook.yml b/.github/workflows/test_storybook.yml index 0f0f14c92..0825919c2 100644 --- a/.github/workflows/test_storybook.yml +++ b/.github/workflows/test_storybook.yml @@ -14,15 +14,16 @@ jobs: storybook: timeout-minutes: 60 runs-on: ubuntu-latest - env: - NODE_OPTIONS: --max_old_space_size=4096 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: 16 - name: Install dependencies - run: npm install + run: | + npm config set @intersect.mbo:registry "https://registry.npmjs.org/" --location=global + npm config set //registry.npmjs.org/:_authToken ${NPMRC_TOKEN} --location=global + npm install - name: Install Playwright run: npx playwright install --with-deps - name: Build Storybook @@ -32,3 +33,7 @@ jobs: npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ "npx http-server storybook-static --port 6006 --silent" \ "npx wait-on tcp:6006 && npm run test-storybook" + + env: + NODE_OPTIONS: --max_old_space_size=4096 + NPMRC_TOKEN: ${{ secrets.NPMRC_TOKEN }} From 91c2a653761e415e68c1ad0d624349bb5962b8a0 Mon Sep 17 00:00:00 2001 From: Nabin Kawan Date: Tue, 11 Jun 2024 16:22:31 +0545 Subject: [PATCH 2/2] chore: Update test-storybook script in workflow --- .github/workflows/test_storybook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_storybook.yml b/.github/workflows/test_storybook.yml index 0825919c2..45c4ca641 100644 --- a/.github/workflows/test_storybook.yml +++ b/.github/workflows/test_storybook.yml @@ -32,7 +32,7 @@ jobs: run: | npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \ "npx http-server storybook-static --port 6006 --silent" \ - "npx wait-on tcp:6006 && npm run test-storybook" + "npx wait-on tcp:6006 && npm run test:storybook" env: NODE_OPTIONS: --max_old_space_size=4096