Skip to content

Commit

Permalink
build: run semantic release on push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
husa committed Aug 5, 2024
1 parent 8639e14 commit 226cc64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI - check build
name: Build and Release

on: push

Expand All @@ -19,4 +19,5 @@ jobs:
- run: npm run lint
# - run: npm test
- run: npm run build
# TODO: release on "master"
- run: npm run semantic-release
if: github.ref == 'refs/heads/master' # only on master branch
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"deploy": "node ./scripts/deploy.js",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"prepare": "husky"
"prepare": "husky",
"semantic-release": "semantic-release"
},
"release": {
"branches": [
Expand Down

0 comments on commit 226cc64

Please sign in to comment.