From 763c4a19b1df72e2c95006f3dab56559c1e9607e Mon Sep 17 00:00:00 2001 From: Roch Devost Date: Tue, 12 Nov 2024 14:26:04 -0500 Subject: [PATCH] fix release tag and environment (#39) --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 245893b..9f2982b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,7 +18,7 @@ jobs: publish: runs-on: ubuntu-latest needs: build - environment: yarn + environment: npm permissions: contents: write env: @@ -36,7 +36,7 @@ jobs: - id: pkg run: | content=`cat ./package.json | tr '\n' ' '` - echo "::set-output name=json::$content" + echo "json=$content" >> $GITHUB_OUTPUT - run: | git tag v${{ fromJson(steps.pkg.outputs.json).version }} git push origin v${{ fromJson(steps.pkg.outputs.json).version }}