File tree Expand file tree Collapse file tree 3 files changed +64
-18
lines changed Expand file tree Collapse file tree 3 files changed +64
-18
lines changed Original file line number Diff line number Diff line change
1
+ name : release
2
+ on :
3
+ release :
4
+ types : [published]
5
+
6
+ jobs :
7
+ release :
8
+ if : github.repository == 'remix-run/react-router'
9
+ runs-on : ubuntu-latest
10
+
11
+ strategy :
12
+ matrix :
13
+ node-version : [14.x]
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+
23
+ - name : Install dependencies
24
+ run : yarn install --frozen-lockfile
25
+
26
+ - name : Build
27
+ run : yarn build
28
+
29
+ - name : Test
30
+ run : yarn test & yarn size
31
+
32
+ - name : Publish
33
+ env :
34
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
35
+ run : |
36
+ echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
37
+ node scripts/publish.js
Original file line number Diff line number Diff line change
1
+ name : test
2
+ on : [push, pull_request]
3
+
4
+ jobs :
5
+ test :
6
+ runs-on : ubuntu-latest
7
+
8
+ strategy :
9
+ matrix :
10
+ node-version : [14.x]
11
+
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+
15
+ - name : Use Node.js ${{ matrix.node-version }}
16
+ uses : actions/setup-node@v1
17
+ with :
18
+ node-version : ${{ matrix.node-version }}
19
+
20
+ - name : Install dependencies
21
+ run : yarn install --frozen-lockfile
22
+
23
+ - name : Build
24
+ run : yarn build
25
+
26
+ - name : Test
27
+ run : yarn test & yarn size
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments