From 974905942a52d9f91f2f410c501a2d180d6f1c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=B6ran=20Sander?= Date: Sat, 17 Feb 2024 16:41:46 +0000 Subject: [PATCH] build: Upgrade to release-please v4 ... --- .github/workflows/ci.yaml | 27 +++++++++------------- release-please-config.json | 47 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 16 deletions(-) create mode 100644 release-please-config.json diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7cf54075..ce53df5e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,24 +19,19 @@ jobs: - name: Show github.ref run: echo "$GITHUB_REF" - - uses: google-github-actions/release-please-action@v3 + - uses: google-github-actions/release-please-action@v4 id: release if: github.repository_owner == 'ptarmiganlabs' with: - # command: manifest - # bootstrap-sha: ad2255c9c24f68d0adb5255159fa5a849ab880e4 - # last-release-sha: b6266be9857c88405364c8af54fbfbed83bb9f66 - # release-as: 9.1.0 + token: ${{ secrets.RELEASE_PLEASE_PAT }} + # optional. customize path to release-please-config.json + config-file: release-please-config.json + # optional. customize path to .release-please-manifest.json + manifest-file: .release-please-manifest.json release-type: node - package-name: butler-sos - default-branch: master - prerelease: false - release-search-depth: 5 - commit-search-depth: 200 - draft: true - changelog-types: '[{"type": "feat","section": "Features","hidden": false},{"type": "fix","section": "Bug Fixes","hidden": false},{"type": "chore","section": "Miscellaneous","hidden": false},{"type": "refactor","section": "Refactoring","hidden": false},{"type": "docs","section": "Documentation","hidden": false},{"type": "build","section": "Miscellaneous","hidden": false}]' + target-branch: master - - name: Show output from Release-Please + - name: Show output from Release-Please if: always() env: RELEASE_PLEASE_OUTPUT: ${{ toJSON(steps.release.outputs) }} @@ -99,7 +94,7 @@ jobs: - name: Install dependencies run: | pwd - npm ci + npm ci --include=prod - name: Build binaries run: | @@ -211,7 +206,7 @@ jobs: - name: Install dependencies run: | pwd - npm ci + npm ci --include=prod - name: Build binaries run: | @@ -303,7 +298,7 @@ jobs: - name: Install dependencies run: | pwd - npm ci + npm ci --include=prod - name: Build binaries run: | diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 00000000..97562394 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,47 @@ +{ + "bootstrap-sha": "f65d47539fbf04124184cc50920652d226723f2c", + "last-release-sha": "f65d47539fbf04124184cc50920652d226723f2c", + "release-as": "9.9.0", + "release-type": "node", + "prerelease": false, + "draft": true, + "release-search-depth": 10, + "commit-search-depth": 200, + "changelog-sections": [ + { + "type": "feat", + "section": "Features", + "hidden": false + }, + { + "type": "fix", + "section": "Bug Fixes", + "hidden": false + }, + { + "type": "chore", + "section": "Miscellaneous", + "hidden": false + }, + { + "type": "refactor", + "section": "Refactoring", + "hidden": false + }, + { + "type": "docs", + "section": "Documentation", + "hidden": false + }, + { + "type": "build", + "section": "Miscellaneous", + "hidden": false + } + ], + "packages": { + ".": { + "package-name": "butler-sos" + } + } +}