Skip to content

Commit 786f5ea

Browse files
authored
Move release permissions (#5719)
* move release permissions from workflow level to job level * use experimental version number to avoid polluting published packages * Downgrade version from 4.38.0.experimental.1 to 4.38.0.experimental.0 * Revert "Downgrade version from 4.38.0.experimental.1 to 4.38.0.experimental.0" This reverts commit fdf2992. * Revert "use experimental version number to avoid polluting published packages" This reverts commit 309d23d.
1 parent c252320 commit 786f5ea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/publish-on-release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ on:
44
release:
55
types: [published]
66

7-
# https://docs.npmjs.com/trusted-publishers#step-2-configure-your-cicd-workflow
8-
permissions:
9-
id-token: write # to enable use of OIDC for npm provenance
10-
contents: read # to enable reading the contents of the release for publishing
11-
127
jobs:
138
build:
149
name: Build Vanilla
@@ -37,6 +32,10 @@ jobs:
3732
name: Publish to NPM
3833
needs: build
3934
runs-on: ubuntu-latest
35+
# https://docs.npmjs.com/trusted-publishers#step-2-configure-your-cicd-workflow
36+
permissions:
37+
id-token: write # to enable use of OIDC for npm provenance
38+
contents: read # to enable reading the contents of the release for publishing
4039
steps:
4140
- uses: actions/checkout@v6
4241
- uses: actions/setup-node@v6

0 commit comments

Comments
 (0)