diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9c346c..b62f649 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,11 @@ jobs: uses: actions/checkout@v3 - name: Set env - run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV + run: | + VERSION="${GITHUB_REF##refs/*/}" + # Remove 'v' prefix if it exists + VERSION="${VERSION#v}" + echo "VERSION=$VERSION" >> $GITHUB_ENV - name: Setup Node uses: actions/setup-node@v3