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 13
13
- uses : actions/checkout@v3
14
14
- uses : actions/setup-node@v3
15
15
with :
16
- node-version : 18
16
+ node-version : 22
17
17
18
18
- run : npm ci
19
19
- run : npm install http-server -g
45
45
./dist/servicestack-client.min.mjs
46
46
./dist/servicestack-client.mjs
47
47
./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:
11
11
- uses : actions/checkout@v3
12
12
- uses : actions/setup-node@v3
13
13
with :
14
- node-version : ' 18 '
14
+ node-version : 22
15
15
- run : npm ci
16
- - run : npm run build && npm run build-minify
16
+ - run : npm install uglifyjs -g
17
+ - run : npm run build
17
18
18
19
- name : Upload build artifact
19
20
uses : actions/upload-artifact@v3
20
21
with :
21
22
name : servicestack-client
22
23
path : |
23
- ./dist/index.js
24
24
./dist/index.d.ts
25
- ./dist/servicestack-client.mjs
25
+ ./dist/index.js
26
26
./dist/servicestack-client.min.js
27
27
./dist/servicestack-client.min.mjs
28
+ ./dist/servicestack-client.mjs
28
29
./dist/servicestack-client.umd.js
29
30
30
31
publish-npm :
@@ -34,10 +35,10 @@ jobs:
34
35
- uses : actions/checkout@v3
35
36
- uses : actions/setup-node@v3
36
37
with :
37
- node-version : ' 18 '
38
+ node-version : 22
38
39
registry-url : ' https://registry.npmjs.org'
39
40
- run : npm ci
40
- - run : npm run build
41
- - run : npm publish
41
+ - run : npm install uglifyjs bump -g
42
+ - run : npm release
42
43
env :
43
44
NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
You can’t perform that action at this time.
0 commit comments