File tree Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Expand file tree Collapse file tree 2 files changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -29,21 +29,21 @@ jobs:
29
29
- uses : actions/checkout@v3
30
30
- uses : actions/setup-node@v3
31
31
with :
32
- node-version : 18
32
+ node-version : 22
33
33
- run : npm ci
34
34
- run : npm install uglifyjs -g
35
- - run : npm run publish
35
+ - run : npm run build
36
36
37
37
- name : Upload build artifact
38
38
uses : actions/upload-artifact@v3
39
39
with :
40
40
name : servicestack-client
41
41
path : |
42
- ./dist/index.js
43
42
./dist/index.d.ts
44
- ./dist/servicestack-client.mjs
43
+ ./dist/index.js
45
44
./dist/servicestack-client.min.js
46
45
./dist/servicestack-client.min.mjs
46
+ ./dist/servicestack-client.mjs
47
47
./dist/servicestack-client.umd.js
48
48
49
49
publish :
56
56
- uses : actions/checkout@v3
57
57
- uses : actions/setup-node@v3
58
58
with :
59
- node-version : 18
59
+ node-version : 22
60
60
registry-url : https://npm.pkg.github.com/
61
61
- run : npm ci
62
- - name : Bump version
63
- run : |
64
- VERSION=$(jq -r '.version' package.json)
65
- HASH=$(git rev-parse --short HEAD)
66
- NEW_VERSION="$VERSION-preview-$HASH"
67
- jq --arg nv "$NEW_VERSION" '.version=$nv' package.json > "tmp.json" && mv "tmp.json" "package.json"
68
- - run : npm publish
62
+ - run : npm release
69
63
env :
70
64
NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 19
19
"uglify" : " npx -y uglify-js dist/servicestack-client.umd.js --compress --mangle -o dist/servicestack-client.min.js" ,
20
20
"uglify-mjs" : " npx -y uglify-js dist/servicestack-client.mjs --compress --mangle -o dist/servicestack-client.min.mjs" ,
21
21
"mjs" : " tsc -p tsconfig.mjs.json && shx mv dist/index.js dist/servicestack-client.mjs && npm run uglify-mjs" ,
22
- "publish" : " tsc && npm run mjs && tsc -p tsconfig.umd.json && shx mv dist/index.js dist/servicestack-client.umd.js && bash inject-umd.sh && npm run uglify && shx mv src/index.js dist && shx cp src/index.d.ts dist" ,
23
22
"dtos" : " cd tests/dtos && typescript-ref" ,
24
23
"test" : " mocha" ,
25
24
"test:browser" : " mocha-headless-chrome -f http://localhost:8080/testrunner.html" ,
26
25
"testonly" : " mocha -t 5000 ./tests/serverevents.spec.js" ,
27
- "release" : " bump patch --commit --push --tag && npm publish"
26
+ "build" : " tsc && npm run mjs && tsc -p tsconfig.umd.json && shx mv dist/index.js dist/servicestack-client.umd.js && bash inject-umd.sh && npm run uglify && shx mv src/index.js dist && shx cp src/index.d.ts dist" ,
27
+ "release" : " npm run build && bump patch --commit --push --tag && npm publish"
28
28
},
29
29
"files" : [
30
30
" dist/index.js" ,
You can’t perform that action at this time.
0 commit comments