Skip to content

Commit

Permalink
chore: first attempt at release please
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jul 14, 2024
1 parent 0f64aee commit 3d30dff
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
- run: |
NPM_PUBLISH_TAG=$([[ $CIRCLE_TAG =~ -[a-z-]+ ]] && echo "pre-release" || echo "latest")
echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ${HOME}/.npmrc
cd ./packages/fetch-mock
cd ./packages/fetch-mock-legacy
npm version --no-git-tag-version $CIRCLE_TAG
npm publish --access public --tag $NPM_PUBLISH_TAG
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: release-please
on:
push:
branches:
- rhys/release-please3

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
4 changes: 4 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"packages/fetch-mock-legacy": "10.0.7",
"packages/fcore": "2.3.4"
}
40 changes: 40 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "node",
"changelog-type": "default",
"changelog-sections": [
{
"type": "feat",
"section": "Features",
"hidden": false
},
{
"type": "fix",
"section": "Bug Fixes",
"hidden": false
},
{
"type": "docs",
"section": "Documentation Changes",
"hidden": false
},
{
"type": "chore",
"section": "Miscellaneous",
"hidden": true
}
],

"plugins": [
"node-workspace"
],
"packages": {
"packages/fetch-mock-legacy": {},
"packages/core": {}
},
"pull-request-title-pattern": "build${scope}: release${component} ${version}",
"pull-request-header": ":rock: I've created a release for you",
"prerelease": true,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true
}

0 comments on commit 3d30dff

Please sign in to comment.