Skip to content

Commit

Permalink
ci: get chromatic token from aws
Browse files Browse the repository at this point in the history
  • Loading branch information
Niznikr committed Jul 21, 2023
1 parent f211faa commit 0ff5b65
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
audience: https://github.com/launchdarkly
role-to-assume: ${{ vars.AWS_ROLE_ARN }}
aws-region: us-east-1

- uses: dkershner6/aws-ssm-getparameters-action@v1
with:
parameterPairs: '/production/common/launchpad-ui/chromatic-token = CHROMATIC_TOKEN'
withDecryption: 'true'

- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand All @@ -29,7 +41,7 @@ jobs:
env:
NODE_OPTIONS: '--max_old_space_size=4096'
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
projectToken: ${{ env.CHROMATIC_TOKEN }}
buildScriptName: 'storybook:build'
exitOnceUploaded: true
onlyChanged: true
Expand Down

0 comments on commit 0ff5b65

Please sign in to comment.