Skip to content

Commit a108815

Browse files
authored
2.0.3 use npm provenance (OIDC) (#37)
- no change in features
1 parent 4f4af38 commit a108815

3 files changed

Lines changed: 34 additions & 14 deletions

File tree

.github/workflows/ci-test-publish.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,24 @@ on:
1919
required: false
2020
default: false
2121

22+
permissions:
23+
actions: read
24+
contents: read
25+
pull-requests: read
26+
# Required for npm provenance (OIDC)
27+
id-token: write
28+
2229
jobs:
2330
build:
2431
runs-on: ubuntu-latest
2532

2633
steps:
27-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@v5.0.0
2835
- name: Setup Node.js
29-
uses: actions/setup-node@v4
36+
uses: actions/setup-node@v6.0.0
3037
with:
31-
node-version: 18
38+
node-version: 24
39+
registry-url: 'https://registry.npmjs.org'
3240
- run: npm ci
3341
- run: npm run lint
3442
- run: npm run prettier:ci
@@ -40,10 +48,7 @@ jobs:
4048
token: ${{ secrets.CODECOV_TOKEN }}
4149
- name: npm publish
4250
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '.') }}
43-
uses: JS-DevTools/npm-publish@v3
44-
with:
45-
access: public
46-
token: ${{ secrets.NPM_TOKEN }}
51+
uses: JS-DevTools/npm-publish@v4.1.1
4752

4853
# Enable tmate debugging of manually-triggered workflows if the input option was provided
4954
- name: Setup tmate session

package-lock.json

Lines changed: 15 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sillsdev/scripture",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "TypeScript partial port of `libpalaso/SIL.Scripture`",
55
"main": "dist/index.cjs.js",
66
"module": "dist/index.es.js",
@@ -57,9 +57,13 @@
5757
"ts-node": "^10.9.2",
5858
"tslib": "^2.8.1",
5959
"typescript": "^5.4.5",
60-
"vite": "^6.3.4"
60+
"vite": "^6.4.1"
61+
},
62+
"publishConfig": {
63+
"access": "public",
64+
"provenance": true
6165
},
6266
"volta": {
63-
"node": "18.20.3"
67+
"node": "24.11.0"
6468
}
6569
}

0 commit comments

Comments
 (0)