Skip to content

Commit f969eed

Browse files
authored
fix: update changesets to publish with NPM OIDC (#430)
1 parent b1d67a4 commit f969eed

File tree

7 files changed

+53
-8
lines changed

7 files changed

+53
-8
lines changed

.github/workflows/changesets.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ jobs:
1010
version:
1111
timeout-minutes: 15
1212
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write # Required for OIDC publishing
15+
contents: write # Required for changesets to push version commit
16+
pull-requests: write # Required for changesets to create PRs
1317
steps:
1418
- name: Checkout code repository
1519
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
@@ -19,7 +23,11 @@ jobs:
1923
- name: Setup node.js
2024
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
2125
with:
22-
node-version: 22
26+
node-version: 24
27+
registry-url: 'https://registry.npmjs.org'
28+
29+
- name: Install latest npm
30+
run: npm install -g npm@latest
2331

2432
- name: Install dependencies
2533
run: npm install --ignore-scripts
@@ -36,4 +44,5 @@ jobs:
3644
publish: npm run ci:publish
3745
env:
3846
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
NPM_TOKEN: ""
48+
NPM_CONFIG_PROVENANCE: true

workspaces/estree-ast-utils/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@
1111
"test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"",
1212
"test": "c8 -r html npm run test-only"
1313
},
14+
"publishConfig": {
15+
"registry": "https://registry.npmjs.org",
16+
"access": "public",
17+
"provenance": true
18+
},
1419
"repository": {
1520
"type": "git",
16-
"url": "git+https://github.com/NodeSecure/js-x-ray.git"
21+
"url": "https://github.com/NodeSecure/js-x-ray",
22+
"directory": "workspaces/estree-ast-utils"
1723
},
1824
"keywords": [
1925
"estree",

workspaces/js-x-ray-ai/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@
1010
"test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"",
1111
"test": "c8 -r html npm run test-only"
1212
},
13+
"publishConfig": {
14+
"registry": "https://registry.npmjs.org",
15+
"access": "public",
16+
"provenance": true
17+
},
1318
"repository": {
1419
"type": "git",
15-
"url": "git+https://github.com/NodeSecure/js-x-ray.git"
20+
"url": "https://github.com/NodeSecure/js-x-ray",
21+
"directory": "workspaces/js-x-ray-ai"
1622
},
1723
"keywords": [],
1824
"author": "GOMBAULD Clément <clementgombauld@hotmail.fr>",

workspaces/js-x-ray/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,15 @@
2323
"test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"",
2424
"test": "c8 --all --src ./src -r html npm run test-only"
2525
},
26+
"publishConfig": {
27+
"registry": "https://registry.npmjs.org",
28+
"access": "public",
29+
"provenance": true
30+
},
2631
"repository": {
2732
"type": "git",
28-
"url": "git+https://github.com/NodeSecure/js-x-ray.git"
33+
"url": "https://github.com/NodeSecure/js-x-ray",
34+
"directory": "workspaces/js-x-ray"
2935
},
3036
"keywords": [
3137
"ast",

workspaces/sec-literal/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@
1111
"test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"",
1212
"test": "npm run test-only"
1313
},
14+
"publishConfig": {
15+
"registry": "https://registry.npmjs.org",
16+
"access": "public",
17+
"provenance": true
18+
},
1419
"repository": {
1520
"type": "git",
16-
"url": "git+https://github.com/NodeSecure/js-x-ray.git"
21+
"url": "https://github.com/NodeSecure/js-x-ray",
22+
"directory": "workspaces/sec-literal"
1723
},
1824
"keywords": [
1925
"security",

workspaces/tracer/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@
1111
"test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"",
1212
"test": "c8 -r html npm run test-only"
1313
},
14+
"publishConfig": {
15+
"registry": "https://registry.npmjs.org",
16+
"access": "public",
17+
"provenance": true
18+
},
1419
"repository": {
1520
"type": "git",
16-
"url": "git+https://github.com/NodeSecure/js-x-ray.git"
21+
"url": "https://github.com/NodeSecure/js-x-ray",
22+
"directory": "workspaces/tracer"
1723
},
1824
"keywords": [],
1925
"files": [

workspaces/ts-source-parser/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@
1111
"test-only": "tsx --test-reporter=spec --test \"./test/**/*.spec.ts\"",
1212
"test": "c8 --all --src ./src -r html npm run test-only"
1313
},
14+
"publishConfig": {
15+
"registry": "https://registry.npmjs.org",
16+
"access": "public",
17+
"provenance": true
18+
},
1419
"repository": {
1520
"type": "git",
16-
"url": "git+https://github.com/NodeSecure/js-x-ray.git"
21+
"url": "https://github.com/NodeSecure/js-x-ray",
22+
"directory": "workspaces/ts-source-parser"
1723
},
1824
"keywords": [
1925
"typescript",

0 commit comments

Comments
 (0)