Skip to content

Commit

Permalink
chore: pass token
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Oct 10, 2023
1 parent 47a3c74 commit 8e08382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ on:
pre-run-script:
required: false
type: string
dispatch-script:
chromatic-token:
required: false
type: string
default: npm run chromatic
run-dispatch:
required: false
type: boolean
Expand All @@ -53,8 +52,6 @@ on:
jobs:
node-ci:
runs-on: ubuntu-latest
env:
CHROMATIC: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
defaults:
run:
shell: bash
Expand Down Expand Up @@ -100,13 +97,9 @@ jobs:
# CDK infrastructure build calls npm ci on /infrastructure/build, which may fail without NODE_AUTH_TOKEN
env:
NODE_AUTH_TOKEN: ${{ secrets.npm-auth-token || secrets.GITHUB_TOKEN }}
- name: Setup upterm session
uses: lhotari/action-upterm@v1
env:
CHROMATIC_TEST_ENV: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Dispatch
if: ${{ inputs.run-dispatch }}
uses: chromaui/action@v1
with:
workingDir: ${{ inputs.working-directory }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
projectToken: ${{ inputs.chromatic-token }}
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
pre-run-script: cd ../dapp && npm ci
audit-script: npm run audit --audit-level=high
run-dispatch: true
chromatic-token: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
secrets:
npm-auth-token: ${{ secrets.GITHUB_TOKEN }}
build-api:
Expand Down

0 comments on commit 8e08382

Please sign in to comment.