Skip to content

Commit 206f38f

Browse files
authored
chore: enable npm trusted publishing (#46)
1 parent 7b5772d commit 206f38f

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,27 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323

24-
- name: Install Pnpm
25-
run: npm install -g corepack@latest --force && corepack enable
26-
2724
- name: Setup Node.js
2825
uses: actions/setup-node@v4
2926
with:
3027
node-version: 22
31-
cache: "pnpm"
28+
29+
# Update npm to the latest version to enable OIDC
30+
# Use corepack to install pnpm
31+
- name: Setup Package Managers
32+
run: |
33+
npm install -g npm@latest
34+
npm --version
35+
npm install -g corepack@latest --force
36+
corepack enable
3237
3338
- name: Install Dependencies
3439
run: pnpm install
3540

3641
- name: Publish
3742
uses: JS-DevTools/npm-publish@v3
3843
with:
39-
token: ${{ secrets.RSTACK_DEV_NPM_TOKEN }}
44+
token: empty
4045

4146
- name: Create GitHub Release
4247
uses: ncipollo/release-action@v1

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
},
113113
"publishConfig": {
114114
"access": "public",
115-
"registry": "https://registry.npmjs.org/",
116-
"provenance": true
115+
"registry": "https://registry.npmjs.org/"
117116
}
118117
}

0 commit comments

Comments
 (0)