Skip to content

Commit 7423c7b

Browse files
authored
fix(workflow): Correction to npm release workflow (#15)
1 parent 181e4d3 commit 7423c7b

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/release-npm.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: read
13+
id-token: write
1314
steps:
1415
- uses: actions/setup-node@v3
1516
with:
@@ -34,7 +35,7 @@ jobs:
3435
env:
3536
NPM_DIST_TAG: latest
3637
NPM_REGISTRY: registry.npmjs.org
37-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3839
run: |
3940
tarball=$(find ./dist/js -name "*.jsii.tgz" | sed 1q)
4041
npm publish $tarball --provenance --access public

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ if (releaseWorkflow) {
6161
with: {},
6262
permissions: {
6363
contents: JobPermission.READ,
64+
idToken: JobPermission.WRITE,
6465
},
6566
secrets: {
6667
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}',

0 commit comments

Comments
 (0)