Skip to content

Commit 9cd3d9b

Browse files
Merge pull request #1421 from AmadeusITGroup/ci/oidc-publish
ci: use trusted publishing for npm
2 parents 14c52e1 + 28dfb7c commit 9cd3d9b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
environment: production
3838
runs-on: ubuntu-latest
3939
permissions:
40-
id-token: write
40+
id-token: write # Required for OIDC
4141
steps:
4242
- uses: actions/checkout@v5
4343
- uses: actions/setup-node@v6
@@ -52,6 +52,4 @@ jobs:
5252
path: ./dist
5353
- name: Set new version
5454
run: npm version --no-git-tag-version ${{ env.RELEASE_VERSION }}
55-
- run: npm publish --provenance
56-
env:
57-
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
55+
- run: npm publish

0 commit comments

Comments
 (0)