Skip to content

Commit 96f1954

Browse files
author
Alexander Kharkovey
committed
refactor(semrel): add pre prelease action
1 parent f185b4c commit 96f1954

File tree

3 files changed

+37
-5
lines changed

3 files changed

+37
-5
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,5 @@ jobs:
3030
run: npm ci
3131
- name: Test
3232
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
3533
env:
3634
CI: true

.github/workflows/Pre-Release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+

.github/workflows/Release.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ on:
33
push:
44
branches:
55
- master
6-
- next
7-
- beta
8-
- "*.x" # maintenance releases branches
96
env:
107
BEFORE_SHA: ${{ github.event.before }}
118
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)