From add08c56cb1af4d80446b9586f010fa436d338a1 Mon Sep 17 00:00:00 2001 From: Pionxzh Date: Sat, 2 Mar 2024 22:02:39 +0800 Subject: [PATCH] build: try fix release-please --- .github/workflows/release-please.yml | 19 ++++++------------- release-please-config.json | 5 ++++- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index e9124136..7df2fd3b 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -10,42 +10,35 @@ permissions: pull-requests: write jobs: - release-please: + release: runs-on: ubuntu-latest steps: - uses: google-github-actions/release-please-action@v4 id: release - with: - release-type: node - include-component-in-tag: true - config-file: ./release-please-config.json - manifest-file: ./.release-please-manifest.json - + publish: + runs-on: ubuntu-latest + needs: release + if: needs.release.outputs.release_created + steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - if: ${{ steps.release.outputs.release_created }} - name: Install pnpm uses: pnpm/action-setup@v3 - if: ${{ steps.release.outputs.release_created }} - name: Use Node.js v20 uses: actions/setup-node@v4 with: node-version: '20' cache: pnpm - if: ${{ steps.release.outputs.release_created }} - run: pnpm install - if: ${{ steps.release.outputs.release_created }} - name: Build run: pnpm run build - if: ${{ steps.release.outputs.release_created }} - name: Publish run: pnpm --filter "unminify" --filter "unpacker" --filter "cli" publish -r --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - if: ${{ steps.release.outputs.release_created }} diff --git a/release-please-config.json b/release-please-config.json index c66df4a3..ce286f28 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -1,8 +1,11 @@ { + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", "pull-request-title-pattern": "chore: release ${version}", "bump-minor-pre-major": true, "bump-patch-for-minor-pre-major": true, - "monorepoTags": true, + "release-type": "node", + "monorepo-tags": true, + "include-component-in-tag": true, "packages": { "packages/cli": { "component": "cli"