From c47ae67a3bf5e4acf4b0ade20b82deac962c6c59 Mon Sep 17 00:00:00 2001 From: Eric Fennis Date: Wed, 10 Dec 2025 13:05:34 +0100 Subject: [PATCH] ci(ci.yml): Apply env variables --- .github/workflows/ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index beda0c4f6..54d1f9e34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,16 +32,27 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Fetch tags + run: git fetch --all --tags + - name: Get latest tag id: latest-tag run: echo "LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT + - name: Log latest tag + run: echo '${{ steps.latest-tag.outputs.LATEST_TAG }}' + - name: Check if we can patch - run: pnpm semver ${{ steps.latest-tag.outputs.LATEST_TAG }} -i minor + run: pnpm semver $LATEST_TAG -i minor + env: + LATEST_TAG: ${{ steps.latest-tag.outputs.LATEST_TAG }} + - name: Create new version id: new-version - run: echo "NEW_VERSION=$(pnpm semver ${{ steps.latest-tag.outputs.LATEST_TAG }} -i minor)" >> $GITHUB_OUTPUT + run: echo "NEW_VERSION=$(pnpm semver $LATEST_TAG -i minor)" >> $GITHUB_OUTPUT + env: + LATEST_TAG: ${{ steps.latest-tag.outputs.LATEST_TAG }} - name: Check output run: |