44 release :
55 types : [created]
66
7+ permissions :
8+ id-token : write
9+
710jobs :
811 build :
912 runs-on : ubuntu-latest
10- environment : npm
11- permissions :
12- contents : read
13- id-token : write
1413 steps :
15- - name : Setup Git Config
16- run : |
17- git config --global core.autocrlf false
18- git config --global core.eol lf
19- git config --global user.email "actions@gihub.com"
20- git config --global user.name "gh-actions"
2114 - uses : actions/checkout@v3
2215 with :
2316 ref : main
17+ - uses : ./.github/actions/initialize
2418 - uses : pnpm/action-setup@v4
2519 with :
2620 version : 9.10.0
27- - uses : actions/setup-node@v4
21+ - uses : actions/setup-node@v2
2822 with :
29- node-version : " 20 .x"
23+ node-version : " 22 .x"
3024 registry-url : https://npm.pkg.github.com
3125 scope : " @Himenon"
3226 cache : " pnpm"
3327 - run : pnpm i --frozen-lockfile
3428 - run : |
3529 pnpm build
36- env:
37- CI: true
3830
3931 release-github-registry :
4032 runs-on : ubuntu-latest
4133 steps :
42- - name : Setup Git Config
43- run : |
44- git config --global core.autocrlf false
45- git config --global core.eol lf
46- git config --global user.email "actions@gihub.com"
47- git config --global user.name "gh-actions"
4834 - uses : actions/checkout@v3
4935 with :
5036 ref : main
37+ - uses : ./.github/actions/initialize
5138 - uses : pnpm/action-setup@v4
5239 with :
5340 version : 9.10.0
54- - uses : actions/setup-node@v4
41+ - uses : actions/setup-node@v2
5542 with :
56- node-version : " 20 .x"
43+ node-version : " 22 .x"
5744 registry-url : https://npm.pkg.github.com
5845 scope : " @Himenon"
5946 cache : " pnpm"
6047 - run : pnpm install
6148 - run : |
6249 pnpm build
63- pnpm release:github:registry
50+ pnpm run release:github:registry
6451 env:
6552 NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66- CI: true
6753
6854 release-npm-registry :
6955 runs-on : ubuntu-latest
@@ -74,15 +60,13 @@ jobs:
7460 - uses : pnpm/action-setup@v4
7561 with :
7662 version : 9.10.0
77- - uses : actions/setup-node@v4
63+ - uses : actions/setup-node@v2
7864 with :
79- node-version : " 20 .x"
65+ node-version : " 22 .x"
8066 registry-url : " https://registry.npmjs.org"
8167 cache : " pnpm"
8268 - run : pnpm install
8369 - run : pnpm build
84- env :
85- CI : true
86- - run : NPM_CONFIG_PROVENANCE=true pnpm release:npm:registry
70+ - run : NPM_CONFIG_PROVENANCE=true pnpm run release:npm:registry
8771 env :
8872 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments