Commit bb09589 1 parent 2e23b35 commit bb09589 Copy full SHA for bb09589
File tree 3 files changed +8
-59
lines changed
3 files changed +8
-59
lines changed Original file line number Diff line number Diff line change 1
- name : deploy workflow
1
+ name : deploy
2
2
3
3
on :
4
- workflow_dispatch :
5
- inputs :
6
- dry_run :
7
- description : Dry run
8
- required : true
9
- default : " false"
4
+ - workflow_dispatch
10
5
11
6
jobs :
12
7
deploy :
13
- name : deploy
14
- runs-on : ubuntu-latest
15
- steps :
16
- - name : checkout
17
- uses : actions/checkout@v2
18
- with :
19
- fetch-depth : 0
20
-
21
- - name : install nodejs
22
- uses : actions/setup-node@v2
23
- with :
24
- node-version : " 14"
25
-
26
- - name : install dependencies
27
- run : yarn install --production false --frozen-lockfile
28
-
29
- - name : build
30
- run : yarn run build
31
-
32
- - name : semantic release
33
- run : yarn semantic-release --dry-run ${{ github.event.inputs.dry_run }}
34
- env :
35
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
36
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
8
+ uses : Byndyusoft/node-reusable-workflows/.github/workflows/deploy.yaml@master
9
+ secrets :
10
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
- name : test workflow
1
+ name : test
2
2
3
3
on :
4
4
- push
5
5
- pull_request
6
6
7
7
jobs :
8
8
test :
9
- name : test
10
-
11
- strategy :
12
- matrix :
13
- os : [ubuntu-latest, windows-latest, macos-latest]
14
- node-version : ["12", "14", "16"]
15
-
16
- runs-on : ${{ matrix.os }}
17
- steps :
18
- - name : checkout
19
- uses : actions/checkout@v2
20
-
21
- - name : install nodejs
22
- uses : actions/setup-node@v2
23
- with :
24
- node-version : ${{ matrix.node-version }}
25
-
26
- - name : install dependencies
27
- run : yarn install --production false --frozen-lockfile --ignore-engines
28
-
29
- - name : lint
30
- run : yarn run lint
31
-
32
- - name : test
33
- run : yarn run test:cov
9
+ uses : Byndyusoft/node-reusable-workflows/.github/workflows/test.yaml@master
Original file line number Diff line number Diff line change 120
120
},
121
121
"publishConfig" : {
122
122
"access" : " public"
123
- },
124
- "packageManager" : " yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
123
+ }
125
124
}
You can’t perform that action at this time.
0 commit comments