Skip to content

Commit 076b09d

Browse files
Update NPM publishing to use OIDC authentication with Node 24 and pnpm 10.19 (#48)
* Initial plan * Initial plan for OIDC NPM publishing update Co-authored-by: alexasselin008 <[email protected]> * Update NPM publishing to use OIDC with Node 24 and pnpm 10.19 Co-authored-by: alexasselin008 <[email protected]> * Apply suggestion from @alexasselin008 * Update .npmrc * Update .github/workflows/publish.yml * Update .npmrc * Update package.json * add update snapshot command --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: alexasselin008 <[email protected]> Co-authored-by: Alexandre Asselin <[email protected]> Co-authored-by: Alexandre Asselin <[email protected]>
1 parent 86dab01 commit 076b09d

File tree

9 files changed

+280
-77
lines changed

9 files changed

+280
-77
lines changed

.changeset/update-npm-oidc.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@workleap/create-schemas": patch
3+
---
4+
5+
Update NPM publishing to use OIDC authentication

.github/actions/setup/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ runs:
99
- name: Install pnpm
1010
uses: pnpm/action-setup@v4
1111
with:
12-
version: 9
1312
run_install: false
1413

1514
- name: Install Node.js

.github/workflows/publish.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
publish: pnpm run changeset:publish
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33-
NPM_TOKEN: ${{ secrets.WORKLEAP_NPM_TOKEN }}
3433

3534
linearb:
3635
needs: [release]

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minimum-release-age=1440
2+
minimum-release-age-exclude[]="@workleap*"

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/*
1+
24

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"postinstall": "pnpm -r --parallel --include-workspace-root exec pnpm dlx rimraf node_modules/.cache",
1414
"dev": "pnpm --filter \"./packages/**\" -r dev",
1515
"test": "pnpm --filter \"./packages/**\" -r test",
16+
"test-update": "pnpm --filter \"./packages/**\" -r test-update",
1617
"build": "pnpm --filter \"./packages/**\" -r build",
1718
"lint": "pnpm run \"/^lint:.*/\"",
1819
"lint:eslint": "eslint --ext .js,.ts,.tsx . --max-warnings=-1 --cache --cache-location node_modules/.cache/eslint",
@@ -33,6 +34,7 @@
3334
"typescript": "5.5.3"
3435
},
3536
"engines": {
36-
"node": ">=18.0.0"
37-
}
38-
}
37+
"node": ">=24.0.0"
38+
},
39+
"packageManager": "[email protected]"
40+
}

packages/create-schemas/bin/create-schemas.js

100644100755
File mode changed.

packages/create-schemas/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"scripts": {
3535
"dev": "tsup --config tsup.dev.ts",
3636
"test": "vitest",
37+
"test-update": "vitest -- update-snapshots",
3738
"build": "tsup --config tsup.build.ts"
3839
},
3940
"devDependencies": {
@@ -47,7 +48,7 @@
4748
"vitest": "1.6.0"
4849
},
4950
"engines": {
50-
"node": ">=18.0.0"
51+
"node": ">=24.0.0"
5152
},
5253
"dependencies": {
5354
"c12": "1.11.1",
@@ -58,4 +59,4 @@
5859
"typescript": "5.5.3",
5960
"zod": "3.23.8"
6061
}
61-
}
62+
}

0 commit comments

Comments
 (0)