From 3e6bd008e4e85a46374ecb1dbefa9a566629fdd1 Mon Sep 17 00:00:00 2001 From: Edgar Khanzadian Date: Fri, 17 May 2024 12:18:48 +0400 Subject: [PATCH] fix: release-please use node workspaces plugin + rollback action to v3 later, upgrade to v4(leather-wallet/mono#133) --- .github/workflows/release-please.yml | 26 +++++++++++++++++--------- release-please-config.json | 7 ++++++- 2 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index c9345b0bd..010e0b234 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -15,17 +15,25 @@ jobs: outputs: releases_created: ${{ steps.release.outputs.releases_created }} steps: - - uses: google-github-actions/release-please-action@v4 - id: release + - uses: google-github-actions/release-please-action@v3 with: - # this assumes that you have created a personal access token (PAT) + command: manifest token: ${{ secrets.LEATHER_BOT }} - # 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 - # Our target branch should be `dev` - target-branch: dev + default-branch: dev + + # TODO(leather-wallet/mono#133): get this back when release-please-action@4 gets an update for pnpm node workspaces. + # steps: + # - uses: google-github-actions/release-please-action@v4 + # id: release + # with: + # # this assumes that you have created a personal access token (PAT) + # token: ${{ secrets.LEATHER_BOT }} + # # 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 + # # Our target branch should be `dev` + # target-branch: dev # The logic below handles the npm publication: deploy: diff --git a/release-please-config.json b/release-please-config.json index f156497d7..57bdd0057 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -92,5 +92,10 @@ "draft": false, "prerelease": false } - } + }, + "plugins": [ + { + "type": "node-workspace" + } + ] }