Skip to content

Commit 3f2ab2b

Browse files
authored
Merge pull request #239 from DataDog/yoann/publish-with-oidc
Update NPM publish workflow to use OIDC
2 parents 67edee8 + 4fb194b commit 3f2ab2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
88
publish:
99
name: Publish to NPM
1010
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
1113
steps:
1214
- uses: actions/checkout@v4
1315
- uses: actions/setup-node@v4
1416
with:
15-
node-version-file: 'package.json'
17+
node-version: '24'
18+
registry-url: 'https://registry.npmjs.org'
1619

17-
- run: yarn config set npmAuthToken $YARN_NPM_AUTH_TOKEN
18-
env:
19-
YARN_NPM_AUTH_TOKEN: ${{ secrets.PUBLISH_NPM_TOKEN }}
2020
- run: yarn
2121
- run: yarn workspace @datadog/rollup-plugin buildBasic
2222
- run: export BUILD_PLUGINS_ENV=production

0 commit comments

Comments
 (0)