From c7d9af58c57e85ac052f734ff1fad8d3fec37f08 Mon Sep 17 00:00:00 2001 From: Jordan Pittman Date: Thu, 5 Sep 2024 09:58:09 -0400 Subject: [PATCH] fix release workflow --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 60aa26070..a78666907 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -144,7 +144,7 @@ jobs: name: Build and release Tailwind CSS permissions: - contents: read + contents: write # for softprops/action-gh-release to create GitHub release # https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions id-token: write @@ -153,6 +153,13 @@ jobs: steps: - uses: actions/checkout@v4 + - run: git fetch --tags -f + + - name: Resolve version + id: vars + run: | + echo "TAG_NAME=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV + - uses: pnpm/action-setup@v4 - name: Use Node.js ${{ env.NODE_VERSION }}