From 2827b824a0b96ab3954fa1942cfcd49dc0577f8b Mon Sep 17 00:00:00 2001 From: Andrea Peruffo Date: Tue, 31 Oct 2023 19:50:22 +0000 Subject: [PATCH] Change the set version mechanism in release pipeline --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 721d9b0..f1743a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,7 @@ jobs: dotnet workload install wasm-tools dotnet workload install wasm-experimental - name: Set version in package.json - run: npm version ${{ github.ref_name }} + run: cat <<< $(jq -r ".version = \"${GITHUB_REF_NAME}\"" package.json) > package.json - name: Build the package run: npm ci && npm run clean && npm run build - name: Publish to npmjs.com