File tree Expand file tree Collapse file tree 4 files changed +41
-86
lines changed Expand file tree Collapse file tree 4 files changed +41
-86
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Releases
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*.*.*'
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Setup NodeJS
14
+ uses : actions/setup-node@v2
15
+ - name : Setup Wasm Pack
16
+ uses : jetli/wasm-pack-action@v0.3.0
17
+ - name : Build the WASM artifact
18
+ env :
19
+ GIT_TAG : ${{ github.ref_name }}
20
+ run : |
21
+ wasm-pack build --target node
22
+ mv pkg/nodejs_snowflake_bg.wasm pkg/nodejs_snowflake_${GIT_TAG}.wasm
23
+ - name : Create Release
24
+ uses : ncipollo/release-action@v1
25
+ env :
26
+ GIT_TAG : ${{ github.ref_name }}
27
+ with :
28
+ generateReleaseNotes : true
29
+ artifacts : " pkg/nodejs_snowflake_${GIT_TAG}.wasm"
30
+ token : ${{ secrets.GITHUB_TOKEN }}
31
+ - name : Publish packages to NPM
32
+ env :
33
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
34
+ run : wasm-pack publish
Original file line number Diff line number Diff line change 9
9
- master
10
10
11
11
jobs :
12
- build :
13
- strategy :
14
- matrix :
15
- os : [ubuntu-latest]
16
- node-version : [12.17.0, 14.16.0]
17
- runs-on : ${{ matrix.os }}
12
+ test :
13
+ runs-on : ubuntu-latest
18
14
steps :
19
15
- uses : actions/checkout@v2
20
- - name : Use Node.js ${{ matrix.node-version }}
21
- uses : actions/setup-node@v1
22
- with :
23
- node-version : ${{ matrix.node-version }}
24
- - name : Install Dependencies
25
- run : npm ci
26
-
27
- - name : Build NodeJS Snowflake
28
- run : npm run build
29
-
16
+ - name : Setup NodeJS
17
+ uses : actions/setup-node@v2
18
+ - name : Setup Wasm Pack
19
+ uses : jetli/wasm-pack-action@v0.3.0
30
20
- name : Run Tests
31
- run : npm t
21
+ run : wasm-pack test --node
You can’t perform that action at this time.
0 commit comments