File tree Expand file tree Collapse file tree 1 file changed +8
-15
lines changed
Expand file tree Collapse file tree 1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,15 @@ name: Release & Publish
33on :
44 push :
55 branches :
6- - main
7- - feat/init
6+ - master
87
98jobs :
109 release :
1110 name : Release
1211 runs-on : ubuntu-latest
1312 steps :
1413 - name : Checkout code
15- uses : actions/checkout@v4
14+ uses : actions/checkout@v5
1615 - name : get-npm-version
1716 id : package-version
1817 uses : martinbeentjes/npm-get-version-action@main
@@ -42,19 +41,13 @@ jobs:
4241 permissions :
4342 contents : read
4443 id-token : write
44+ environment : production
4545 steps :
46- - uses : actions/checkout@v4
47- - name : Setup node version
48- uses : actions/setup-node@v4
46+ - uses : actions/checkout@v5
47+ - uses : actions/setup-node@v5
4948 with :
5049 node-version : 24
5150 cache : npm
52- registry-url : ' https://registry.npmjs.org'
53- - name : Install modules
54- run : npm ci
55- - name : Build
56- run : npm run build
57- - name : Publish to npm
58- run : npm publish --access public
59- env :
60- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
51+ - run : npm ci
52+ - run : npm run build
53+ - run : npm publish
You can’t perform that action at this time.
0 commit comments