Skip to content

Commit 01fd21a

Browse files
authored
change publish.yml to release.yml and use semantic release instead of npm-publish (#572)
1 parent 7e24dac commit 01fd21a

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed
Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
name: Publish NPM package
1+
name: Release
22

33
on:
44
push:
5-
branches: ['master']
5+
branches:
6+
- master
67

78
jobs:
89
build:
9-
name: publish the package to NPM
10+
name: Release
1011
runs-on: ubuntu-latest
1112

1213
strategy:
@@ -15,12 +16,15 @@ jobs:
1516

1617
steps:
1718
- uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
1821
- name: Use Node.js ${{ matrix.node-version }}
1922
uses: actions/setup-node@v1
2023
with:
2124
node-version: ${{ matrix.node-version }}
2225
- run: npm install
23-
- uses: JS-DevTools/npm-publish@v1
24-
with:
25-
token: ${{ secrets.NPM_TOKEN }}
26-
access: 'public'
26+
- name: Release
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
run: npx semantic-release

0 commit comments

Comments
 (0)