From d71f1c74c3187d4612429e13703d2715384f752f Mon Sep 17 00:00:00 2001 From: Nils Haberkamp Date: Thu, 23 Oct 2025 07:57:53 +0100 Subject: [PATCH] ci: add automatic release to npm --- .github/workflows/release.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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 }}