Skip to content

Commit

Permalink
Fixed: only work when an release is published #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Muh-Hasan authored Aug 12, 2021
1 parent 155d763 commit b8cafd9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Test and Release
on:
push:
branches: [master]
release:
types: [created]

jobs:
publish:
Expand All @@ -12,9 +12,7 @@ jobs:
with:
node-version: 10
- run: npm install
# - run: npm test
# - name: Semantic Release
# uses: cycjimmy/semantic-release-action@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit b8cafd9

Please sign in to comment.