Skip to content

Commit 60cb1c6

Browse files
updated release workflow
1 parent e0dd4ea commit 60cb1c6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name: Release (main)
2-
31
on:
42
push:
53
branches:
@@ -11,6 +9,7 @@ jobs:
119
permissions:
1210
contents: read
1311
id-token: write # CRITICAL: This enables OIDC authentication
12+
packages: write
1413

1514
steps:
1615
- name: Checkout
@@ -39,6 +38,7 @@ jobs:
3938
run: npm run build
4039

4140
- name: Publish to npm
42-
# OIDC handles authentication automatically now.
4341
working-directory: dist/ngbootstrap
44-
run: npm publish --provenance --access public # publish the built package only
42+
env:
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)