Skip to content

Commit 1e02469

Browse files
committed
ci(create-release): use npm trusted publisher
1 parent 4b2446f commit 1e02469

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- 'v*.*.*'
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: write
11+
812
jobs:
913
create-release:
1014
if: github.actor_id != 210085057
@@ -86,8 +90,11 @@ jobs:
8690
with:
8791
ref: ${{ github.ref_name }}
8892

93+
94+
- name: Setup Node.js
95+
uses: actions/setup-node@v4
96+
with:
97+
node-version: '24'
98+
8999
- name: Publish package to npm registry
90-
run: bun publish --access public
91-
working-directory: package
92-
env:
93-
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
100+
run: npm publish --access public

package/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
],
2222
"repository": {
2323
"type": "git",
24-
"url": "git+https://github.com/communityox/ox_lib.git"
24+
"url": "git+https://github.com/CommunityOx/ox_lib.git"
2525
},
2626
"bugs": {
27-
"url": "https://github.com/communityox/ox_lib/issues"
27+
"url": "https://github.com/CommunityOx/ox_lib/issues"
2828
},
2929
"license": "LGPL-3.0",
3030
"dependencies": {

0 commit comments

Comments
 (0)