Skip to content

Commit 73a92a7

Browse files
committed
update publishing
1 parent 2bd4ea0 commit 73a92a7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
node-version: 22.x
2222
registry-url: 'https://registry.npmjs.org'
2323

24+
- name: Upgrade npm (trusted publishing requires >= 11.5.1)
25+
run: npm install -g npm@latest
26+
2427
- name: Install dependencies
2528
run: npm ci
2629

@@ -32,8 +35,6 @@ jobs:
3235

3336
- name: Publish to npm
3437
run: npm publish --provenance --access public
35-
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3738

3839
- name: Create GitHub Release
3940
uses: softprops/action-gh-release@v2

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
},
1515
"license": "MIT",
1616
"author": "InertiaCore",
17+
"publishConfig": {
18+
"access": "public"
19+
},
1720
"type": "module",
1821
"exports": {
1922
".": {

0 commit comments

Comments
 (0)