Skip to content

Context7 Platform -- Up-to-date docs for AI agents

fix: Update release workflow to remove 'v' prefix from version variable

enesgules2c5d40aa9667
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f9c346cf..b62f6499 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