Skip to content

Commit d80f6ca

Browse files
authored
gha: update publish-to-npm (using OIDC now) (#158)
1 parent e83c5b0 commit d80f6ca

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/publish-to-npm.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,14 @@ jobs:
1515
with:
1616
aws-region: ${{ vars.RP_AWS_CRED_REGION }}
1717
role-to-assume: arn:aws:iam::${{ secrets.RP_AWS_CRED_ACCOUNT_ID }}:role/${{ vars.RP_AWS_CRED_BASE_ROLE_NAME }}${{ github.event.repository.name }}
18-
- uses: aws-actions/aws-secretsmanager-get-secrets@v2
19-
with:
20-
secret-ids: |
21-
,sdlc/prod/github/npm_token
22-
parse-json-secrets: true
23-
- uses: actions/checkout@v4
24-
- uses: actions/setup-node@v4
18+
- uses: actions/checkout@v5
19+
- uses: actions/setup-node@v5
2520
with:
2621
node-version: '20'
2722
registry-url: 'https://registry.npmjs.org/'
2823
- run: npm install
29-
- uses: JS-DevTools/npm-publish@v3
24+
- uses: JS-DevTools/npm-publish@v4
3025
id: publish
31-
with:
32-
token: ${{ env.NPM_TOKEN }}
3326
- name: Check published version
3427
if: ${{ steps.publish.outputs.type }}
3528
run: echo "Version changed!"

0 commit comments

Comments
 (0)