File tree Expand file tree Collapse file tree 6 files changed +104
-14
lines changed Expand file tree Collapse file tree 6 files changed +104
-14
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Canary
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ test :
10
+ runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ node-version : [14.x]
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ - run : yarn install
23
+ - run : yarn build
24
+ - run : yarn test
25
+
26
+ publish-canary :
27
+ runs-on : ubuntu-latest
28
+ needs : test
29
+ steps :
30
+ - uses : actions/checkout@v2
31
+ - uses : actions/setup-node@v1
32
+ with :
33
+ node-version : 14.x
34
+ registry-url : ' https://registry.npmjs.org'
35
+ - run : yarn install
36
+ - run : yarn build
37
+ - run : npx rollingversions publish --canary $GITHUB_RUN_NUMBER
38
+ env :
39
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
40
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ repository_dispatch :
4
+ types : [rollingversions_publish_approved]
5
+
6
+ jobs :
7
+ test :
8
+ runs-on : ubuntu-latest
9
+
10
+ strategy :
11
+ matrix :
12
+ node-version : [14.x]
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - name : Use Node.js ${{ matrix.node-version }}
17
+ uses : actions/setup-node@v1
18
+ with :
19
+ node-version : ${{ matrix.node-version }}
20
+ - run : yarn install
21
+ - run : yarn build
22
+ - run : yarn test
23
+
24
+ publish :
25
+ runs-on : ubuntu-latest
26
+ needs : test
27
+ steps :
28
+ - uses : actions/checkout@v2
29
+ - uses : actions/setup-node@v1
30
+ with :
31
+ node-version : 14.x
32
+ registry-url : ' https://registry.npmjs.org'
33
+ - run : yarn install
34
+ - run : yarn build
35
+ - run : npx rollingversions publish
36
+ env :
37
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+
8
+ jobs :
9
+ test :
10
+ runs-on : ubuntu-latest
11
+
12
+ strategy :
13
+ matrix :
14
+ node-version : [14.x]
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v1
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ - run : yarn install
23
+ - run : yarn build
24
+ - run : yarn test
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ components
2
2
node_modules
3
3
test
4
4
.gitignore
5
- .travis.yml
5
+ .github
6
6
component.json
7
7
coverage
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 4
4
"description" : " Bare bones Promises/A+ implementation" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "prepublish " : " node build" ,
7
+ "build " : " node build" ,
8
8
"pretest" : " node build" ,
9
9
"pretest-resolve" : " node build" ,
10
10
"pretest-extensions" : " node build" ,
You can’t perform that action at this time.
0 commit comments