Skip to content

Commit

Permalink
chore: switch NPM publishing token source (#1494)
Browse files Browse the repository at this point in the history
* chore: switch NPM publishing token source

* delete .changeset/olive-lies-bake.md
  • Loading branch information
kuhe authored Jan 8, 2025
1 parent f35a075 commit 8f34321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-npm-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.ROLE_TO_ASSUME }}
role-to-assume: ${{ secrets.JS_TEAM_ROLE_TO_ASSUME }}
role-session-name: SmithyTypeScriptGitHubRelease
audience: sts.amazonaws.com
- name: Commit
Expand All @@ -46,9 +46,9 @@ jobs:
id: token
if: steps.commit.outcome == 'success'
run: |
aws configure --profile token set role_arn ${{ secrets.TOKEN_ROLE }}
aws configure --profile token set role_arn ${{ secrets.JS_TEAM_TOKEN_ROLE }}
aws configure --profile token set credential_source Environment
npm_token=$(aws secretsmanager get-secret-value --region us-west-2 --secret-id=SMITHY_PUBLISH_npmToken --query SecretString --output text --profile token)
npm_token=$(aws secretsmanager get-secret-value --region us-west-2 --secret-id=smithy-typescript-npm-token --query SecretString --output text --profile token)
echo "::add-mask::$npm_token"
echo "NPM_TOKEN=$npm_token" >> $GITHUB_ENV
- name: Stage Release
Expand Down

0 comments on commit 8f34321

Please sign in to comment.