diff --git a/.circleci/config.yml b/.circleci/config.yml index 0562663a..b387e88c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 00000000..52dd8759 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -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 diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 00000000..c14dc327 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,4 @@ +{ + "packages/fetch-mock-legacy": "10.0.7", + "packages/fcore": "2.3.4" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 00000000..11d6e5c5 --- /dev/null +++ b/release-please-config.json @@ -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 +}