Skip to content

Commit

Permalink
chore: add release-it
Browse files Browse the repository at this point in the history
New releases are created by pushing a tag with semantic versioning (v*)
...
  • Loading branch information
bfabio committed Sep 1, 2021
1 parent 505fe06 commit 3612496
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: yarn install
- run: yarn run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"git": {
"commitMessage": "chore: release ${version}"
},
"github": {
"release": true
},
"npm": {
"publish": false
},
"plugins": {
"@release-it/bumper": {
"out": [
"package.json",
{
"file": "publiccode.yml",
"path": "softwareVersion"
}
]
}
}
}

0 comments on commit 3612496

Please sign in to comment.