Skip to content

Commit 703fb48

Browse files
committed
ci: update workflow to include next
1 parent 199c4db commit 703fb48

File tree

4 files changed

+617
-622
lines changed

4 files changed

+617
-622
lines changed

Diff for: .github/workflows/push.yml

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
name: Release
1+
name: Publish
22

33
on: push
44

55
jobs:
6-
build:
7-
name: Build and release
6+
publish:
7+
name: Publish to npm
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v2
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
1212
with:
1313
node-version: '16.x'
1414
registry-url: 'https://registry.npmjs.org/'
@@ -17,18 +17,12 @@ jobs:
1717

1818
- name: Install dependencies
1919
run: ./init.sh
20-
env:
21-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2220

2321
- name: Run tests
2422
run: npm run test
25-
env:
26-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2723

2824
- name: Build
2925
run: npm run build
30-
env:
31-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3226

3327
- name: Dry-run release
3428
run: npm run release:dryrun
@@ -38,7 +32,7 @@ jobs:
3832

3933
- name: Release
4034
run: npm run release
41-
if: github.ref == 'refs/heads/main'
35+
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next'
4236
env:
4337
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4438
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Diff for: .releaserc.json

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
{
22
"branches": [
3-
"+([0-9])?(.{+([0-9]),x}).x",
4-
"master",
53
"main",
6-
"next",
7-
"next-major",
84
{
9-
"name": "beta",
10-
"prerelease": true
11-
},
12-
{
13-
"name": "alpha",
5+
"name": "next",
146
"prerelease": true
157
}
168
],
@@ -27,7 +19,8 @@
2719
"changelogFile": "CHANGELOG.md"
2820
}],
2921
["@semantic-release/git", {
30-
"assets": ["CHANGELOG.md"]
22+
"assets": ["CHANGELOG.md"],
23+
"message": "chore(release): ${nextRelease.version} [skip ci]"
3124
}],
3225
"@semantic-release/npm",
3326
"@semantic-release/github"

0 commit comments

Comments
 (0)