Skip to content

Commit 8f4960e

Browse files
committed
DOPS-1719 Implement npmjs publishing using OIDC
1 parent 2741896 commit 8f4960e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v3
1717

18-
- uses: actions/setup-node@v4
18+
- uses: actions/setup-node@v3
1919
with:
2020
node-version: 18
2121
registry-url: 'https://registry.npmjs.org'
@@ -38,8 +38,6 @@ jobs:
3838
- name: Publish
3939
run: yarn publish
4040
working-directory: dist
41-
env:
42-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4341

4442
publish-to-github:
4543
runs-on: ubuntu-latest
@@ -50,7 +48,7 @@ jobs:
5048
- name: Checkout
5149
uses: actions/checkout@v3
5250

53-
- uses: actions/setup-node@v4
51+
- uses: actions/setup-node@v3
5452
with:
5553
node-version: 18
5654
registry-url: 'https://npm.pkg.github.com'
@@ -73,3 +71,5 @@ jobs:
7371
- name: Publish
7472
run: yarn publish
7573
working-directory: dist
74+
env:
75+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)