Skip to content

Commit

Permalink
fix: semantic release config (#29)
Browse files Browse the repository at this point in the history
* fix: semantic release config

* fix: command name checkout_code to checkout
  • Loading branch information
dkoo authored Aug 20, 2020
1 parent a964dd8 commit e116c58
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
23 changes: 22 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@ jobs:
name: Release new version
command: npm run release

# Reset alpha branch after a release
post_release:
docker:
- image: circleci/node:12
steps:
- checkout
- run:
name: Set tip of alpha branch on top of release and force-push it to remote
command: |
git pull origin release
git checkout alpha
git reset --hard release --
git push "https://$GITHUB_TOKEN@github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git" --force
workflows:
version: 2
main:
Expand All @@ -65,6 +79,13 @@ workflows:
- build
filters:
branches:
only:
only:
- release
- alpha
- post_release:
requires:
- release
filters:
branches:
only:
- release
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
[
"semantic-release-version-bump",
{
"files": "newspack-new-plugin-boilerplate.php",
"files": "newspack-sponsors.php",
"callback": "npm run release:archive"
}
],
{
"path": "@semantic-release/git",
"assets": [
"newspack-new-plugin-boilerplate.php",
"newspack-sponsors.php",
"package.json",
"package-lock.json",
"CHANGELOG.md"
Expand All @@ -71,8 +71,8 @@
{
"assets": [
{
"path": "./release/newspack-new-plugin-boilerplate.zip",
"label": "newspack-new-plugin-boilerplate.zip"
"path": "./release/newspack-sponsors.zip",
"label": "newspack-sponsors.zip"
}
]
}
Expand All @@ -86,11 +86,11 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/Automattic/newspack-new-plugin-boilerplate.git"
"url": "git+https://github.com/Automattic/newspack-sponsors.git"
},
"license": "GPL-2.0-or-later",
"bugs": {
"url": "https://github.com/Automattic/newspack-new-plugin-boilerplate/issues"
"url": "https://github.com/Automattic/newspack-sponsors/issues"
},
"dependencies": {
"@wordpress/api-fetch": "^3.12.0",
Expand Down

0 comments on commit e116c58

Please sign in to comment.