Skip to content

Commit 38aee05

Browse files
Merge pull request #2 from gofynd/oidc-publish
Added configuration for npm publish using OIDC
2 parents 2fd869d + d47b4d2 commit 38aee05

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,22 @@ on:
77
release:
88
types: [created]
99

10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: read
13+
1014
jobs:
1115
publish-npm:
1216
runs-on: ubuntu-latest
1317
steps:
1418
- uses: actions/checkout@v4
1519
- uses: actions/setup-node@v4
1620
with:
17-
node-version: 20
21+
node-version: 24
1822
registry-url: https://registry.npmjs.org/
1923
- uses: jaywcjlove/github-action-package@main
2024
with:
2125
version: ${{ github.ref_name }}
2226
rename: "@gofynd/fdk-store-gql"
2327
- run: npm ci
2428
- run: npm publish --access public
25-
env:
26-
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}

0 commit comments

Comments
 (0)