File tree 4 files changed +617
-622
lines changed
4 files changed +617
-622
lines changed Original file line number Diff line number Diff line change 1
- name : Release
1
+ name : Publish
2
2
3
3
on : push
4
4
5
5
jobs :
6
- build :
7
- name : Build and release
6
+ publish :
7
+ name : Publish to npm
8
8
runs-on : ubuntu-latest
9
9
steps :
10
- - uses : actions/checkout@v2
11
- - uses : actions/setup-node@v2
10
+ - uses : actions/checkout@v3
11
+ - uses : actions/setup-node@v3
12
12
with :
13
13
node-version : ' 16.x'
14
14
registry-url : ' https://registry.npmjs.org/'
@@ -17,18 +17,12 @@ jobs:
17
17
18
18
- name : Install dependencies
19
19
run : ./init.sh
20
- env :
21
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
22
20
23
21
- name : Run tests
24
22
run : npm run test
25
- env :
26
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
27
23
28
24
- name : Build
29
25
run : npm run build
30
- env :
31
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
32
26
33
27
- name : Dry-run release
34
28
run : npm run release:dryrun
38
32
39
33
- name : Release
40
34
run : npm run release
41
- if : github.ref == 'refs/heads/main'
35
+ if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next'
42
36
env :
43
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
38
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
2
"branches" : [
3
- " +([0-9])?(.{+([0-9]),x}).x" ,
4
- " master" ,
5
3
" main" ,
6
- " next" ,
7
- " next-major" ,
8
4
{
9
- "name" : " beta" ,
10
- "prerelease" : true
11
- },
12
- {
13
- "name" : " alpha" ,
5
+ "name" : " next" ,
14
6
"prerelease" : true
15
7
}
16
8
],
27
19
"changelogFile" : " CHANGELOG.md"
28
20
}],
29
21
[" @semantic-release/git" , {
30
- "assets" : [" CHANGELOG.md" ]
22
+ "assets" : [" CHANGELOG.md" ],
23
+ "message" : " chore(release): ${nextRelease.version} [skip ci]"
31
24
}],
32
25
" @semantic-release/npm" ,
33
26
" @semantic-release/github"
You can’t perform that action at this time.
0 commit comments