Skip to content

Commit bf38041

Browse files
chore: add major release workflow (#147)
1 parent 18d85e0 commit bf38041

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Release Patch
22

33
on:
44
- workflow_dispatch

.github/workflows/release_major.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release Major
2+
3+
on:
4+
- workflow_dispatch
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node_version: [16]
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Setup
17+
uses: ./.github/actions/setup
18+
with:
19+
node_version: ${{ matrix.node_version }}
20+
21+
- name: Test
22+
uses: ./.github/actions/test
23+
with:
24+
codecov_token: ${{ secrets.CODECOV_TOKEN }}
25+
26+
release:
27+
runs-on: ubuntu-latest
28+
29+
if: github.ref == 'refs/heads/main'
30+
31+
needs: [test]
32+
33+
steps:
34+
- uses: actions/checkout@v3
35+
- name: Setup
36+
uses: ./.github/actions/setup
37+
38+
- name: Release
39+
uses: ./.github/actions/release
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
npm_token: ${{ secrets.NPM_TOKEN }}
43+
release_target: version-publish-major

packages/qwik-nx/project.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@
9090
"postTargets": ["qwik-nx:publish", "qwik-nx:push-to-github"]
9191
}
9292
},
93+
"version-publish-major": {
94+
"executor": "@jscutlery/semver:version",
95+
"options": {
96+
"noVerify": true,
97+
"push": true,
98+
"releaseAs": "major",
99+
"postTargets": ["qwik-nx:publish", "qwik-nx:push-to-github"]
100+
}
101+
},
93102
"publish": {
94103
"executor": "ngx-deploy-npm:deploy",
95104
"options": {

0 commit comments

Comments
 (0)