File tree Expand file tree Collapse file tree 1 file changed +9
-20
lines changed Expand file tree Collapse file tree 1 file changed +9
-20
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
- on :
2
+ " on " :
3
3
push :
4
4
branches :
5
- - main
5
+ - master
6
6
jobs :
7
7
release :
8
- name : Release
8
+ name : release
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - name : Checkout
12
- uses : actions/checkout@v2
13
- with :
14
- fetch-depth : 0
15
- - name : Setup Node.js
16
- uses : actions/setup-node@v2
11
+ - uses : actions/checkout@v2
12
+ - uses : actions/setup-node@v2
17
13
with :
14
+ cache : npm
18
15
node-version : lts/*
19
- - name : Git Config
20
- run :
git config --global user.email "[email protected] " && git config --global user.name "Your Name"
21
- - name : Install dependencies
22
- run : npm ci
23
- - name : Test
24
- run : npm test
25
- - name : Build
26
- run : npm run build
27
- - name : Release
16
+ - run : npm clean-install
17
+ - run : npx semantic-release
28
18
env :
29
19
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
31
- run : npx semantic-release
20
+ NPM_TOKEN : ${{ secrets.NPM_PUBLISH_TOKEN }}
You can’t perform that action at this time.
0 commit comments