Skip to content

Commit 23cbc17

Browse files
update publishing scripts (#209)
* updated wrapper * move react to peer dependency * fix vite dev dep * Skip screenshots in CI * Move to trusted publisher https://docs.npmjs.com/trusted-publishers * update publishing scripts
1 parent d6b82a7 commit 23cbc17

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,33 @@ on:
33
push:
44
branches:
55
- main
6-
permissions:
7-
contents: read
8-
id-token: write # required for npm trusted publisher (OIDC)
6+
97
jobs:
108
build:
119
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write # required for npm trusted publisher (OIDC)
13+
1214

1315
steps:
1416
- uses: actions/checkout@v4
1517
- uses: actions/setup-node@v4
1618
with:
1719
node-version: "18.x"
1820
registry-url: "https://registry.npmjs.org"
21+
22+
- name: Use latest npm (trusted publisher support)
23+
run: npm install -g npm@latest
24+
25+
- name: Clean legacy npm auth config
26+
run: npm config delete //registry.npmjs.org/:_authToken || true
27+
1928
- run: npm ci
2029
- run: npm run build
30+
31+
- name: Verify identity (OIDC)
32+
run: npm whoami
33+
2134
# OIDC auth + provenance; no token needed when using trusted publishers
2235
- run: npm publish --provenance --access public

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@watts-lab/surveys",
3-
"version": "1.19.3",
3+
"version": "1.19.4",
44
"description": "",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

0 commit comments

Comments
 (0)