Skip to content

Commit 0823f10

Browse files
committed
fix cd
1 parent 4c17b1c commit 0823f10

File tree

30 files changed

+469
-7
lines changed

30 files changed

+469
-7
lines changed

.github/workflows/spa-client-js-cd.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ jobs:
8585
uses: actions/checkout@v3
8686
with:
8787
submodules: true
88-
ref: ${{github.event.inputs.tag}}
8988

9089
- name: Install Node
9190
uses: actions/setup-node@v2
@@ -154,14 +153,14 @@ jobs:
154153
- uses: actions/checkout@v3
155154
with:
156155
submodules: true
157-
ref: ${github.event.inputs.tag}
158156

159157
- name: Setup node
160158
uses: actions/setup-node@v2
161159
with:
162160
node-version: 16
163161
check-latest: true
164162
cache: yarn
163+
cache-dependency-path: jsclient/yarn.lock
165164
- name: Cache NPM dependencies
166165
uses: actions/cache@v2
167166
with:
@@ -174,7 +173,7 @@ jobs:
174173
- name: Download all artifacts
175174
uses: actions/download-artifact@v2
176175
with:
177-
path: artifacts
176+
path: jsclient/artifacts
178177
- name: Move artifacts
179178
run: yarn artifacts
180179
- name: List packages
@@ -183,7 +182,7 @@ jobs:
183182
- name: Publish
184183
run: |
185184
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
186-
npm publish --tag ${{github.event.inputs.tag}} --access public
185+
npm publish --access public
187186
env:
188187
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
189-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
188+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

jsclient/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package-lock.json
33
.idea
44

55
spa-client.*.node
6-
6+
artifacts
77
/debug

jsclient/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPA-Client
2+
This is a wrapper of Rust commandline for [spa-server](https://github.com/timzaak/spa-server),
3+
please read the doc [SPA_Client.md](https://github.com/timzaak/spa-server/blob/master/doc/SPA-Client.md) to more information
4+
about it, and there is also an example to quick start: [js-app-example](https://github.com/timzaak/spa-server/tree/master/example/js-app-example)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `spa-client-android-arm-eabi`
2+
3+
This is the **armv7-linux-androideabi** binary for `spa-client`
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "spa-client-android-arm-eabi",
3+
"version": "1.0.0",
4+
"os": [
5+
"android"
6+
],
7+
"cpu": [
8+
"arm"
9+
],
10+
"main": "spa-client.android-arm-eabi.node",
11+
"files": [
12+
"spa-client.android-arm-eabi.node"
13+
],
14+
"description": "node.js wrapper for spa-client",
15+
"keywords": [
16+
"napi-rs",
17+
"NAPI",
18+
"N-API",
19+
"Rust",
20+
"node-addon",
21+
"node-addon-api"
22+
],
23+
"license": "MIT",
24+
"engines": {
25+
"node": ">= 10"
26+
},
27+
"publishConfig": {
28+
"registry": "https://registry.npmjs.org/",
29+
"access": "public"
30+
},
31+
"repository": "https://github.com/timzaak/spa-server"
32+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `spa-client-android-arm64`
2+
3+
This is the **aarch64-linux-android** binary for `spa-client`
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "spa-client-android-arm64",
3+
"version": "1.0.0",
4+
"os": [
5+
"android"
6+
],
7+
"cpu": [
8+
"arm64"
9+
],
10+
"main": "spa-client.android-arm64.node",
11+
"files": [
12+
"spa-client.android-arm64.node"
13+
],
14+
"description": "node.js wrapper for spa-client",
15+
"keywords": [
16+
"napi-rs",
17+
"NAPI",
18+
"N-API",
19+
"Rust",
20+
"node-addon",
21+
"node-addon-api"
22+
],
23+
"license": "MIT",
24+
"engines": {
25+
"node": ">= 10"
26+
},
27+
"publishConfig": {
28+
"registry": "https://registry.npmjs.org/",
29+
"access": "public"
30+
},
31+
"repository": "https://github.com/timzaak/spa-server"
32+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `spa-client-darwin-arm64`
2+
3+
This is the **aarch64-apple-darwin** binary for `spa-client`
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "spa-client-darwin-arm64",
3+
"version": "1.0.0",
4+
"os": [
5+
"darwin"
6+
],
7+
"cpu": [
8+
"arm64"
9+
],
10+
"main": "spa-client.darwin-arm64.node",
11+
"files": [
12+
"spa-client.darwin-arm64.node"
13+
],
14+
"description": "node.js wrapper for spa-client",
15+
"keywords": [
16+
"napi-rs",
17+
"NAPI",
18+
"N-API",
19+
"Rust",
20+
"node-addon",
21+
"node-addon-api"
22+
],
23+
"license": "MIT",
24+
"engines": {
25+
"node": ">= 10"
26+
},
27+
"publishConfig": {
28+
"registry": "https://registry.npmjs.org/",
29+
"access": "public"
30+
},
31+
"repository": "https://github.com/timzaak/spa-server"
32+
}

jsclient/npm/darwin-x64/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `spa-client-darwin-x64`
2+
3+
This is the **x86_64-apple-darwin** binary for `spa-client`

0 commit comments

Comments
 (0)