Skip to content

Commit

Permalink
update publish ci scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 11, 2024
1 parent ce33fda commit 0df44d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 22

- run: npm ci
- run: npm install http-server -g
Expand Down Expand Up @@ -45,20 +45,3 @@ jobs:
./dist/servicestack-client.min.mjs
./dist/servicestack-client.mjs
./dist/servicestack-client.umd.js
publish:
needs: package
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 22
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm run release
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
15 changes: 8 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,21 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
node-version: 22
- run: npm ci
- run: npm run build && npm run build-minify
- run: npm install uglifyjs -g
- run: npm run build

- name: Upload build artifact
uses: actions/upload-artifact@v3
with:
name: servicestack-client
path: |
./dist/index.js
./dist/index.d.ts
./dist/servicestack-client.mjs
./dist/index.js
./dist/servicestack-client.min.js
./dist/servicestack-client.min.mjs
./dist/servicestack-client.mjs
./dist/servicestack-client.umd.js
publish-npm:
Expand All @@ -34,10 +35,10 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
node-version: 22
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish
- run: npm install uglifyjs bump -g
- run: npm release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 0df44d4

Please sign in to comment.