File tree Expand file tree Collapse file tree 3 files changed +37
-5
lines changed Expand file tree Collapse file tree 3 files changed +37
-5
lines changed Original file line number Diff line number Diff line change 30
30
run : npm ci
31
31
- name : Test
32
32
run : npx nx affected:test --base=remotes/origin/master
33
- - name : Publishing pre-releases
34
- run : npx nx affected --target=deploy --base=remotes/origin/master
35
33
env :
36
34
CI : true
Original file line number Diff line number Diff line change
1
+ name : Pre-Release
2
+ on :
3
+ push :
4
+ branches :
5
+ - next
6
+ - beta
7
+ - " *.x" # maintenance releases branches
8
+ env :
9
+ BEFORE_SHA : ${{ github.event.before }}
10
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
11
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
12
+ jobs :
13
+ release :
14
+ name : Release
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout
18
+ uses : actions/checkout@v2
19
+ with :
20
+ fetch-depth : 0
21
+ - name : Setup Node.js
22
+ uses : actions/setup-node@v1
23
+ with :
24
+ node-version : 14
25
+ - uses : actions/cache@v2
26
+ with :
27
+ path : ~/.npm
28
+ key : ${{ runner.os }}-node-${{ hashFiles('./package-lock.json') }}
29
+ restore-keys : |
30
+ ${{ runner.os }}-node-
31
+ - name : Install dependencies
32
+ run : npm ci
33
+ - name : Test
34
+ run : npx nx affected:test --base=remotes/origin/master
35
+ - name : Deploy
36
+ run : npx nx affected --target=deploy --base=remotes/origin/master
37
+
Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- master
6
- - next
7
- - beta
8
- - " *.x" # maintenance releases branches
9
6
env :
10
7
BEFORE_SHA : ${{ github.event.before }}
11
8
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments