Skip to content

Commit 754a1d8

Browse files
authored
πŸ‘· Enable oidc npm trusted publishing (#1961)
1 parent 85d1c4f commit 754a1d8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

β€Ž.github/workflows/npm-publish.ymlβ€Ž

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
tags:
55
- "v*"
6+
permissions:
7+
id-token: write
8+
contents: read
69
jobs:
710
npm-publish:
811
runs-on: ubuntu-latest
@@ -18,11 +21,7 @@ jobs:
1821
- name: Build πŸ‘·β€β™‚οΈ
1922
run: pnpm turbo run build --filter=gitmojis
2023
- name: Publish package to NPM πŸš€
21-
env:
22-
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
23-
run: |
24-
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
25-
pnpm turbo publishPackage
24+
run: pnpm turbo publishPackage
2625
- name: Publish GitHub Release πŸ“
2726
uses: softprops/action-gh-release@v2
2827
with:

β€Ž.node-versionβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22
1+
24

0 commit comments

Comments
Β (0)