Skip to content

Commit

Permalink
fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Mar 11, 2024
1 parent f5e5b73 commit ce60277
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-latest-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/pow-faucet-server-linux
asset_path: ./bin/server-linux
asset_name: powfaucet-server-linux
asset_content_type: application/octet-stream
env:
Expand All @@ -169,7 +169,7 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/pow-faucet-server-win.exe
asset_path: ./bin/server-win.exe
asset_name: powfaucet-server-win.exe
asset_content_type: application/octet-stream
env:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/release-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- run: npm install -g pkg

# build server project
Expand All @@ -47,11 +48,12 @@ jobs:
# publish npm packages
- run: |
npm publish --access public
npm set "//registry.npmjs.org/:_authToken=$NPM_TOKEN"
npm publish --access public || true
cd faucet-client
npm publish --access public
npm publish --access public || true
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# package bundled release
- name: Package bundled release
Expand Down Expand Up @@ -105,7 +107,7 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/pow-faucet-server-linux
asset_path: ./bin/server-linux
asset_name: powfaucet-server-linux
asset_content_type: application/octet-stream
env:
Expand All @@ -114,7 +116,7 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/pow-faucet-server-win.exe
asset_path: ./bin/server-win.exe
asset_name: powfaucet-server-win.exe
asset_content_type: application/octet-stream
env:
Expand Down
8 changes: 7 additions & 1 deletion faucet-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@
},
"author": "pk910 (https://pk910.de)",
"license": "AGPL-3.0",
"repository": "https://github.com/pk910/PoWFaucet",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/pk910/PoWFaucet"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/plugin-proposal-class-properties": "^7.18.6",
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
},
"author": "pk910 (https://pk910.de)",
"license": "AGPL-3.0",
"repository": "https://github.com/pk910/PoWFaucet",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/pk910/PoWFaucet"
},
"pkg": {
"scripts": "bundle/*.cjs",
"assets": [
Expand Down

0 comments on commit ce60277

Please sign in to comment.