File tree Expand file tree Collapse file tree 2 files changed +9
-25
lines changed Expand file tree Collapse file tree 2 files changed +9
-25
lines changed Original file line number Diff line number Diff line change 1313 - uses : actions/checkout@v3
1414 - uses : actions/setup-node@v3
1515 with :
16- node-version : 18
16+ node-version : 22
1717
1818 - run : npm ci
1919 - run : npm install http-server -g
4545 ./dist/servicestack-client.min.mjs
4646 ./dist/servicestack-client.mjs
4747 ./dist/servicestack-client.umd.js
48-
49- publish :
50- needs : package
51- runs-on : ubuntu-latest
52- permissions :
53- contents : read
54- packages : write
55- steps :
56- - uses : actions/checkout@v3
57- - uses : actions/setup-node@v3
58- with :
59- node-version : 22
60- registry-url : https://npm.pkg.github.com/
61- - run : npm ci
62- - run : npm run release
63- env :
64- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change @@ -11,20 +11,21 @@ jobs:
1111 - uses : actions/checkout@v3
1212 - uses : actions/setup-node@v3
1313 with :
14- node-version : ' 18 '
14+ node-version : 22
1515 - run : npm ci
16- - run : npm run build && npm run build-minify
16+ - run : npm install uglifyjs -g
17+ - run : npm run build
1718
1819 - name : Upload build artifact
1920 uses : actions/upload-artifact@v3
2021 with :
2122 name : servicestack-client
2223 path : |
23- ./dist/index.js
2424 ./dist/index.d.ts
25- ./dist/servicestack-client.mjs
25+ ./dist/index.js
2626 ./dist/servicestack-client.min.js
2727 ./dist/servicestack-client.min.mjs
28+ ./dist/servicestack-client.mjs
2829 ./dist/servicestack-client.umd.js
2930
3031 publish-npm :
@@ -34,10 +35,10 @@ jobs:
3435 - uses : actions/checkout@v3
3536 - uses : actions/setup-node@v3
3637 with :
37- node-version : ' 18 '
38+ node-version : 22
3839 registry-url : ' https://registry.npmjs.org'
3940 - run : npm ci
40- - run : npm run build
41- - run : npm publish
41+ - run : npm install uglifyjs bump -g
42+ - run : npm release
4243 env :
4344 NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
You can’t perform that action at this time.
0 commit comments