Skip to content

Commit e3a7402

Browse files
Merge branch 'main' into james/memoize_survey_factory
2 parents 9ba3319 + d6b82a7 commit e3a7402

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,33 @@ on:
33
push:
44
branches:
55
- main
6+
67
jobs:
78
build:
89
runs-on: ubuntu-latest
910
permissions:
1011
contents: read
1112
id-token: write # required for npm trusted publisher (OIDC)
1213

14+
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+
1922
- name: Use latest npm (trusted publisher support)
2023
run: npm install -g npm@latest
24+
2125
- name: Clean legacy npm auth config
2226
run: npm config delete //registry.npmjs.org/:_authToken || true
27+
2328
- run: npm ci
2429
- run: npm run build
30+
2531
- name: Verify identity (OIDC)
2632
run: npm whoami
33+
2734
# OIDC auth + provenance; no token needed when using trusted publishers
2835
- run: npm publish --provenance --access public

0 commit comments

Comments
 (0)