File tree 3 files changed +94
-0
lines changed
3 files changed +94
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Next
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - " next"
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+
15
+ - name : Setup Node.js environment
16
+
17
+
18
+ - name : Install yarn
19
+ run : npm install -g yarn
20
+
21
+ - name : Install Dependencies
22
+ run : yarn
23
+
24
+ - name : Run test
25
+ run : yarn test
26
+
27
+ - name : Build and publish
28
+ run : |
29
+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
30
+ yarn build
31
+ yarn publish --tag=next --access public
32
+ env :
33
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+
15
+ - name : Setup Node.js environment
16
+
17
+
18
+ - name : Install yarn
19
+ run : npm install -g yarn
20
+
21
+ - name : Install Dependencies
22
+ run : yarn
23
+
24
+ - name : Run test
25
+ run : yarn test
26
+
27
+ - name : Build and publish
28
+ run : |
29
+ echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
30
+ yarn build
31
+ yarn publish --access public
32
+ env :
33
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - " *"
7
+ pull_request :
8
+ branches :
9
+ - " *"
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+
18
+ - name : Setup Node.js environment
19
+
20
+
21
+ - name : Install yarn
22
+ run : npm install -g yarn
23
+
24
+ - name : Install Dependencies
25
+ run : yarn
26
+
27
+ - name : Run test
28
+ run : yarn test
You can’t perform that action at this time.
0 commit comments