Skip to content

Commit

Permalink
feat: create github release on version tag (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Sep 15, 2021
1 parent 4c0248d commit 550cf40
Show file tree
Hide file tree
Showing 3 changed files with 553 additions and 28 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:

steps:
- uses: actions/checkout@v2.3.4
with:
fetch-depth: 0

- name: Use Node.js 14.x
uses: actions/setup-node@v2.4.0
Expand All @@ -28,6 +30,12 @@ jobs:
- name: Test
run: yarn run test

- name: Create github release
if: startsWith(github.ref, 'refs/tags/v')
run: npx conventional-github-releaser -p angular
env:
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Publish to NPM
if: startsWith(github.ref, 'refs/tags/v')
run: yarn publish
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
},
"devDependencies": {
"@linzjs/style": "^3.1.1",
"conventional-changelog-cli": "^2.1.1"
"conventional-changelog-cli": "^2.1.1",
"conventional-github-releaser": "^3.1.5"
},
"scripts": {
"build": "tsc",
Expand Down
Loading

0 comments on commit 550cf40

Please sign in to comment.