diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index edaf3bd..2f0631a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,6 +36,13 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Update version in package.json + run: | + # Read the latest release version from environment variable + LATEST_VERSION="${{ env.LATEST_RELEASE }}" + + # Update the "version" field in package.json using jq + jq --arg version "$LATEST_VERSION" '.version = $version' package.json > temp.json && mv temp.json package.json - name: Setup node uses: actions/setup-node@v3 with: