File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 tags :
66 - ' v*.*.*'
77
8+ env :
9+ NODE_VERSION : 24
10+ NPM_SCOPE : ' @stoe'
11+
812jobs :
9- publish :
10- uses : stoe/policies/.github/workflows/policy-node-publish.yml@main
13+ publish_npm :
14+ runs-on : ubuntu-latest
15+
16+ concurrency :
17+ group : ${{ github.workflow }}-npm-${{ github.ref }}
18+ cancel-in-progress : true
19+
20+ permissions :
21+ contents : read
22+ packages : write
23+ id-token : write
24+
25+ env :
26+ CI : true
27+
28+ steps :
29+ - name : Checkout
30+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+
32+ - name : Setup Node.js
33+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
34+ with :
35+ node-version : ${{ env.NODE_VERSION }}
36+ scope : ${{ env.NPM_SCOPE }}
37+ registry-url : ' https://registry.npmjs.org'
38+
39+ - name : NPM config
40+ run : |
41+ npm pkg delete scripts.prepare
42+ npm install --ignore-scripts --pure-lockfile
43+ git ls-files -z . | xargs -0 git update-index --assume-unchanged
44+
45+ - name : NPM publish
46+ run : npm publish --provenance --access public
47+
48+ publish_gh :
49+ runs-on : ubuntu-latest
50+
51+ concurrency :
52+ group : ${{ github.workflow }}-gh-${{ github.ref }}
53+ cancel-in-progress : true
54+
1155 permissions :
1256 contents : read
1357 packages : write
1458 id-token : write
15- with :
16- npm : true
17- gh : true
59+
60+ env :
61+ CI : true
62+
63+ steps :
64+ - name : Checkout
65+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
66+
67+ - name : Setup Node.js
68+ uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
69+ with :
70+ node-version : ${{ env.NODE_VERSION }}
71+ scope : ${{ env.NPM_SCOPE }}
72+ registry-url : ' https://npm.pkg.github.com'
73+
74+ - name : NPM config
75+ run : |
76+ npm pkg delete scripts.prepare
77+ npm install --ignore-scripts --pure-lockfile
78+ git ls-files -z . | xargs -0 git update-index --assume-unchanged
79+
80+ - name : GitHub Packages publish
81+ run : npm publish --access public
You can’t perform that action at this time.
0 commit comments