Skip to content

Commit c68ee6e

Browse files
authored
1 parent 33c8d39 commit c68ee6e

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
types:
66
- published
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
release:
1014
name: Release
@@ -17,9 +21,10 @@ jobs:
1721
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
1822

1923
- name: Setup Node
20-
uses: actions/setup-node@v2
24+
uses: actions/setup-node@v4
2125
with:
22-
node-version: 18
26+
node-version: 24
27+
registry-url: https://registry.npmjs.org
2328

2429
- name: Set package version
2530
run: echo $(jq --arg v "${{ env.VERSION }}" '(.version) = $v' package.json) > package.json
@@ -35,13 +40,10 @@ jobs:
3540
- name: Build
3641
run: bun run build
3742

38-
- name: Add npm token
39-
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc
40-
4143
- name: Publish release candidate
4244
if: "github.event.release.prerelease"
43-
run: npm publish --access public --tag=canary
45+
run: npm publish --access public --tag=canary --provenance
4446

4547
- name: Publish
4648
if: "!github.event.release.prerelease"
47-
run: npm publish --access public
49+
run: npm publish --access public --provenance

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"publishConfig": {
99
"access": "public"
1010
},
11+
"repository": {
12+
"type": "git",
13+
"url": "git@github.com:upstash/react-redis-browser.git"
14+
},
1115
"bugs": {
1216
"url": "https://github.com/upstash/react-redis-browser/issues"
1317
},

0 commit comments

Comments
 (0)