diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 4487525c..9c5dc771 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -5,6 +5,7 @@ on: permissions: contents: write + issues: write pull-requests: write name: Run Release Please @@ -12,27 +13,26 @@ jobs: release-please: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v4 + - uses: googleapis/release-please-action@v4 id: release with: token: ${{secrets.GITHUB_TOKEN}} - default-branch: main - + release-type: node # The logic below handles the npm publication: - name: Checkout Repository uses: actions/checkout@v4 - if: ${{ steps.release.outputs.releases_created }} + if: ${{ steps.release.outputs.release_created }} - name: Install pnpm uses: pnpm/action-setup@v4 - if: ${{ steps.release.outputs.releases_created }} + if: ${{ steps.release.outputs.release_created }} - name: Setup Node uses: actions/setup-node@v4 - if: ${{ steps.release.outputs.releases_created }} + if: ${{ steps.release.outputs.release_created }} with: node-version: 20 registry-url: "https://registry.npmjs.org" - name: Build Packages - if: ${{ steps.release.outputs.releases_created }} + if: ${{ steps.release.outputs.release_created }} run: | pnpm install pnpm build @@ -41,7 +41,7 @@ jobs: # need to publish all unpublished versions to NPM here # See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package - name: Publish to NPM - if: ${{ steps.release.outputs.releases_created }} + if: ${{ steps.release.outputs.release_created }} env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} run: npx lerna publish from-package --no-push --no-private --no-verify-access --yes