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 f006e62
Show file tree
Hide file tree
Showing 5 changed files with 2,196 additions and 48 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/publiccode-versioning.yml

This file was deleted.

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"
}
]
}
}
}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"build-prod": "webpack --config webpack.config.prod.js",
"test": "jest",
"deploy": "gh-pages -u 'Deploy Bot <[email protected]>' -d dist",
"postinstall": "patch-package"
"postinstall": "patch-package",
"release": "release-it"
},
"keywords": [
"publiccode",
Expand All @@ -29,6 +30,8 @@
}
},
"devDependencies": {
"@release-it/bumper": "^3.0.1",
"@release-it/conventional-changelog": "^3.3.0",
"autoprefixer": "^9.4.10",
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.1",
Expand Down Expand Up @@ -60,6 +63,7 @@
"patch-package": "^6.2.2",
"postcss-loader": "^3.0.0",
"react-test-renderer": "^16.8.6",
"release-it": "^14.11.5",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"url-loader": "^1.1.2",
Expand Down
Loading

0 comments on commit f006e62

Please sign in to comment.