-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from bfabio/release
chore: add release-it to automatically do release chores
- Loading branch information
Showing
5 changed files
with
2,211 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|
@@ -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", | ||
|
@@ -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", | ||
|
Oops, something went wrong.
b837650
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: