Skip to content

Commit cb22a2f

Browse files
committed
Use npm trusted publishing
1 parent e6ca972 commit cb22a2f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,25 @@ jobs:
1313
release:
1414
needs: test
1515
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
id-token: write
1619
steps:
1720
- uses: actions/checkout@v2
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
registry-url: "https://registry.npmjs.org"
1825
- uses: ./.github/actions/setup-test-env
1926
- id: npm-publish
2027
name: Publish requirefire to npm
21-
uses: JS-DevTools/npm-publish@v1
28+
uses: JS-DevTools/npm-publish@v4
2229
with:
23-
token: ${{ secrets.NPM_TOKEN }}
2430
access: public
31+
provenance: true
2532
- name: Publish Release to github
2633
uses: softprops/action-gh-release@v1
2734
if: ${{ steps.npm-publish.outputs.type != 'none' }}
2835
with:
2936
tag_name: ${{ steps.npm-publish.outputs.version }}
30-
generate_release_notes: true
37+
generate_release_notes: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/gadget-inc/requirefire.git"
8+
"url": "git+https://github.com/gadget-inc/requirefire.git"
99
},
1010
"publishConfig": {
1111
"access": "public"

0 commit comments

Comments
 (0)