Skip to content

Commit

Permalink
Merge pull request #224 from bfabio/release
Browse files Browse the repository at this point in the history
chore: add release-it to automatically do release chores
  • Loading branch information
bfabio authored Sep 3, 2021
2 parents 04e7a71 + b2cd1aa commit b837650
Show file tree
Hide file tree
Showing 5 changed files with 2,211 additions and 48 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/publiccode-versioning.yml

This file was deleted.

24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
# Always release the tip of the default branch
ref: master

- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: yarn install
- run: yarn run release --ci --no-increment
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"git": {
"commitMessage": "chore(release): release ${version}",
"tag": false
},
"github": {
"release": true,
"update": true
},
"npm": {
"publish": false,
"ignoreVersion": true
},
"plugins": {
"@release-it/bumper": {
"out": [
"package.json",
{
"file": "publiccode.yml",
"path": "softwareVersion"
}
]
},
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"infile": "CHANGELOG.md"
}
}
}
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

1 comment on commit b837650

@vercel
Copy link

@vercel vercel bot commented on b837650 Sep 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.