Skip to content

Commit

Permalink
Merge pull request #25 from sh4hids/feature/add-typescript
Browse files Browse the repository at this point in the history
BREAKING CHANGE: fix release action
  • Loading branch information
sh4hids committed Mar 23, 2022
2 parents 0c39090 + 7975215 commit 472f8e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Release

on:
pull_request_target:
types:
- closed
branches: [main]
push:
branches:
- main

jobs:
if_merged:
if: ${{ github.event.pull_request.merged }}
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -21,7 +20,7 @@ jobs:
- name: Validating build
run: npm run validate
- name: Publish to NPM
run: npm run semantic-release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"lint-staged": "lint-staged",
"prepare": "husky install",
"commit": "cz",
"semantic-release": "semantic-release --brances main"
"semantic-release": "semantic-release"
},
"files": [
"lib/*"
Expand Down

0 comments on commit 472f8e5

Please sign in to comment.