Skip to content

Commit dc7d0a8

Browse files
authored
Update publish.yml
1 parent 072a207 commit dc7d0a8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ on:
77
- 'releases/**'
88

99
jobs:
10-
publish:
10+
build:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: checkout
1414
uses: actions/checkout@v2
15-
- name: node
16-
uses: actions/setup-node@v2
17-
with:
18-
node-version: 16
19-
registry-url: https://registry.npmjs.org
15+
- name: install dependencies
16+
run: npm install
17+
- name: build package
18+
run: npm run build
2019
- name: publish
21-
run: npm publish --access public
20+
uses: codfish/semantic-release-action@v3
2221
env:
23-
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
22+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
23+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 commit comments

Comments
 (0)