Skip to content

Commit

Permalink
Merge pull request #1241 from IntersectMBO/fix/storybook-workflow-aut…
Browse files Browse the repository at this point in the history
…htoken-config

Fix/storybook workflow authtoken config
  • Loading branch information
NabinKawan authored Jun 12, 2024
2 parents 26a23fd + 91c2a65 commit d359595
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/test_storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,4 +32,8 @@ 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
NPMRC_TOKEN: ${{ secrets.NPMRC_TOKEN }}

0 comments on commit d359595

Please sign in to comment.