diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c3a7d4..0fc76f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,23 @@ jobs: runs-on: ubuntu-latest steps: - uses: googleapis/release-please-action@v4 + id: release with: token: ${{ secrets.RELEASE_PLEASE_TOKEN }} - release-type: simple + release-type: node + - uses: + actions/checkout@v4 + # these if statements ensure that a publication only occurs when + # a new release is created: + if: ${{ steps.release.outputs.release_created }} + - uses: actions/setup-node@v4 + with: + node-version: 24 + registry-url: https://registry.npmjs.org + if: ${{ steps.release.outputs.release_created }} + - run: pnpm install --frozen-lockfile + if: ${{ steps.release.outputs.release_created }} + - run: pnpm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + if: ${{ steps.release.outputs.release_created }}