Skip to content

Commit ce60277

Browse files
committed
fix release workflow
1 parent f5e5b73 commit ce60277

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

.github/workflows/build-latest-v2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
uses: actions/upload-release-asset@v1
161161
with:
162162
upload_url: ${{ steps.create_release.outputs.upload_url }}
163-
asset_path: ./bin/pow-faucet-server-linux
163+
asset_path: ./bin/server-linux
164164
asset_name: powfaucet-server-linux
165165
asset_content_type: application/octet-stream
166166
env:
@@ -169,7 +169,7 @@ jobs:
169169
uses: actions/upload-release-asset@v1
170170
with:
171171
upload_url: ${{ steps.create_release.outputs.upload_url }}
172-
asset_path: ./bin/pow-faucet-server-win.exe
172+
asset_path: ./bin/server-win.exe
173173
asset_name: powfaucet-server-win.exe
174174
asset_content_type: application/octet-stream
175175
env:

.github/workflows/release-v2.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
- uses: actions/setup-node@v3
3333
with:
3434
node-version: 20
35+
registry-url: "https://registry.npmjs.org"
3536
- run: npm install -g pkg
3637

3738
# build server project
@@ -47,11 +48,12 @@ jobs:
4748
4849
# publish npm packages
4950
- run: |
50-
npm publish --access public
51+
npm set "//registry.npmjs.org/:_authToken=$NPM_TOKEN"
52+
npm publish --access public || true
5153
cd faucet-client
52-
npm publish --access public
54+
npm publish --access public || true
5355
env:
54-
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
56+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5557
5658
# package bundled release
5759
- name: Package bundled release
@@ -105,7 +107,7 @@ jobs:
105107
uses: actions/upload-release-asset@v1
106108
with:
107109
upload_url: ${{ steps.create_release.outputs.upload_url }}
108-
asset_path: ./bin/pow-faucet-server-linux
110+
asset_path: ./bin/server-linux
109111
asset_name: powfaucet-server-linux
110112
asset_content_type: application/octet-stream
111113
env:
@@ -114,7 +116,7 @@ jobs:
114116
uses: actions/upload-release-asset@v1
115117
with:
116118
upload_url: ${{ steps.create_release.outputs.upload_url }}
117-
asset_path: ./bin/pow-faucet-server-win.exe
119+
asset_path: ./bin/server-win.exe
118120
asset_name: powfaucet-server-win.exe
119121
asset_content_type: application/octet-stream
120122
env:

faucet-client/package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
},
1212
"author": "pk910 (https://pk910.de)",
1313
"license": "AGPL-3.0",
14-
"repository": "https://github.com/pk910/PoWFaucet",
14+
"publishConfig": {
15+
"access": "public"
16+
},
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/pk910/PoWFaucet"
20+
},
1521
"devDependencies": {
1622
"@babel/core": "^7.24.0",
1723
"@babel/plugin-proposal-class-properties": "^7.18.6",

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
},
1616
"author": "pk910 (https://pk910.de)",
1717
"license": "AGPL-3.0",
18-
"repository": "https://github.com/pk910/PoWFaucet",
18+
"publishConfig": {
19+
"access": "public"
20+
},
21+
"repository": {
22+
"type": "git",
23+
"url": "https://github.com/pk910/PoWFaucet"
24+
},
1925
"pkg": {
2026
"scripts": "bundle/*.cjs",
2127
"assets": [

0 commit comments

Comments
 (0)