Skip to content

Commit 0df44d4

Browse files
committed
update publish ci scripts
1 parent ce33fda commit 0df44d4

File tree

2 files changed

+9
-25
lines changed

2 files changed

+9
-25
lines changed

.github/workflows/npm-publish-github-packages.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
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
@@ -45,20 +45,3 @@ jobs:
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}}

.github/workflows/publish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff 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}}

0 commit comments

Comments
 (0)