From ebe42a2166555434c54ef7edbcd5d156a7b05f9e Mon Sep 17 00:00:00 2001 From: scagood <2230835+scagood@users.noreply.github.com> Date: Tue, 27 Feb 2024 09:48:11 +0000 Subject: [PATCH] ci: Migrate to manifest config --- .github/release-please/config.json | 18 ++++++++++++++++++ .github/release-please/manifest.json | 1 + .github/workflows/release-please.yml | 20 ++++---------------- 3 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 .github/release-please/config.json create mode 100644 .github/release-please/manifest.json diff --git a/.github/release-please/config.json b/.github/release-please/config.json new file mode 100644 index 00000000..1d22e1d9 --- /dev/null +++ b/.github/release-please/config.json @@ -0,0 +1,18 @@ +{ + "release-type": "node", + "prerelease": true, + "versioning": "prerelease", + "include-component-in-tag": false, + "changelog-sections": [ + { "type": "feat", "section": "Features", "hidden": false }, + { "type": "fix", "section": "Bug Fixes", "hidden": false }, + { "type": "docs", "section": "Documentation", "hidden": false }, + { "type": "build", "section": "Build Related", "hidden": false }, + { "type": "chore", "section": "Chores", "hidden": false }, + { "type": "perf", "section": "Chores", "hidden": false }, + { "type": "ci", "section": "Chores", "hidden": false }, + { "type": "refactor", "section": "Chores", "hidden": false }, + { "type": "test", "section": "Chores", "hidden": false } + ], + "packages": { ".": {} } +} diff --git a/.github/release-please/manifest.json b/.github/release-please/manifest.json new file mode 100644 index 00000000..9981e2d8 --- /dev/null +++ b/.github/release-please/manifest.json @@ -0,0 +1 @@ +{ ".": "17.0.0-3" } diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index ba59d78c..df8165c3 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -14,21 +14,9 @@ jobs: - uses: google-github-actions/release-please-action@v4 id: release with: - release-type: node - prerelease: beta - package-name: 'eslint-plugin-n' - changelog-types: > - [ - { "type": "feat", "section": "Features", "hidden": false }, - { "type": "fix", "section": "Bug Fixes", "hidden": false }, - { "type": "docs", "section": "Documentation", "hidden": false }, - { "type": "build", "section": "Build Related", "hidden": false }, - { "type": "chore", "section": "Chores", "hidden": false }, - { "type": "perf", "section": "Chores", "hidden": false }, - { "type": "ci", "section": "Chores", "hidden": false }, - { "type": "refactor", "section": "Chores", "hidden": false }, - { "type": "test", "section": "Chores", "hidden": false } - ] + config-file: .github/release-please/config.json + manifest-file: .github/release-please/manifest.json + - uses: actions/checkout@v4 if: ${{ steps.release.outputs.release_created }} - uses: actions/setup-node@v4 @@ -38,7 +26,7 @@ jobs: if: ${{ steps.release.outputs.release_created }} - run: | npm install - npm publish --provenance + npm publish --provenance --tag next env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} if: ${{ steps.release.outputs.release_created }}