File tree 1 file changed +54
-0
lines changed 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name : Publish Lowcoder Comps
5
+
6
+ on :
7
+ push :
8
+ branches : [ "echarts-json-rerender-fix" ]
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v3
15
+ with :
16
+ fetch-depth : 0
17
+ - name : Use Node.js ${{ matrix.node-version }}
18
+ uses : actions/setup-node@v3
19
+ with :
20
+ node-version : ${{ matrix.node-version }}
21
+ cache : ' yarn'
22
+ cache-dependency-path : ' client/packages/lowcoder-comps/yarn.lock'
23
+ - name : Install dependencies
24
+ uses : borales/actions-yarn@v4.2.0
25
+ with :
26
+ cmd : install
27
+ dir : client/packages/lowcoder-comps
28
+ - name : Run tests
29
+ uses : borales/actions-yarn@v4.2.0
30
+ with :
31
+ cmd : test
32
+ dir : client/packages/lowcoder-comps
33
+
34
+ publish-package :
35
+ needs : build
36
+ runs-on : ubuntu-latest
37
+ steps :
38
+ - uses : actions/checkout@v3
39
+ - uses : actions/setup-node@v3
40
+ with :
41
+ node-version : 16
42
+ registry-url : https://registry.npmjs.org/
43
+ - name : Install dependencies
44
+ uses : borales/actions-yarn@v4.2.0
45
+ with :
46
+ cmd : install
47
+ dir : client/packages/lowcoder-comps
48
+ - name : Publish
49
+ uses : borales/actions-yarn@v4.2.0
50
+ with :
51
+ cmd : build_publish
52
+ dir : client/packages/lowcoder-comps
53
+ env :
54
+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments