From c97fbadffe27431c231f35b81f06dd460fd53ba1 Mon Sep 17 00:00:00 2001 From: Fynn Feldpausch Date: Mon, 22 Apr 2024 20:29:03 +0200 Subject: [PATCH] chore: adjust CI release pipeline --- .github/workflows/release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c594e48f..d6af045f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,23 +17,23 @@ jobs: id: release - name: Checkout uses: actions/checkout@v4 - if: ${{ steps.release.outputs.release_created }} + if: ${{ fromJSON(steps.release.outputs.releases_created) }} - name: Setup node uses: actions/setup-node@v4 with: node-version-file: .nvmrc registry-url: "https://registry.npmjs.org" - if: ${{ steps.release.outputs.release_created }} + if: ${{ fromJSON(steps.release.outputs.releases_created) }} - name: Setup pnpm uses: pnpm/action-setup@v3 with: version: 9 run_install: false - if: ${{ steps.release.outputs.release_created }} + if: ${{ fromJSON(steps.release.outputs.releases_created) }} - name: Get pnpm store directory shell: bash run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - if: ${{ steps.release.outputs.release_created }} + if: ${{ fromJSON(steps.release.outputs.releases_created) }} - name: Setup pnpm cache uses: actions/cache@v4 with: @@ -41,17 +41,17 @@ jobs: key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}-pnpm-store- - if: ${{ steps.release.outputs.release_created }} + if: ${{ fromJSON(steps.release.outputs.releases_created) }} - name: Install run: pnpm install - if: ${{ steps.release.outputs.release_created }} + if: ${{ fromJSON(steps.release.outputs.releases_created) }} - name: Build run: pnpm run build - if: ${{ steps.release.outputs.release_created }} + if: ${{ fromJSON(steps.release.outputs.releases_created) }} - name: Install (again - testing...) run: pnpm install - if: ${{ steps.release.outputs.release_created }} + if: ${{ fromJSON(steps.release.outputs.releases_created) }} - run: pnpm run publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - if: ${{ steps.release.outputs.release_created }} + if: ${{ fromJSON(steps.release.outputs.releases_created) }}