Skip to content

Commit 9ba3319

Browse files
update publishing scripts
1 parent 855b200 commit 9ba3319

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,26 @@ on:
33
push:
44
branches:
55
- main
6-
permissions:
7-
contents: read
8-
id-token: write # required for npm trusted publisher (OIDC)
96
jobs:
107
build:
118
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
id-token: write # required for npm trusted publisher (OIDC)
1212

1313
steps:
1414
- uses: actions/checkout@v4
1515
- uses: actions/setup-node@v4
1616
with:
1717
node-version: "18.x"
1818
registry-url: "https://registry.npmjs.org"
19+
- name: Use latest npm (trusted publisher support)
20+
run: npm install -g npm@latest
21+
- name: Clean legacy npm auth config
22+
run: npm config delete //registry.npmjs.org/:_authToken || true
1923
- run: npm ci
2024
- run: npm run build
25+
- name: Verify identity (OIDC)
26+
run: npm whoami
2127
# OIDC auth + provenance; no token needed when using trusted publishers
2228
- 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)