diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f46932..289a26a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,12 +32,6 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: | - SEMVER=$(grep -Po '"version": "\K[^"]*' package.json) - sed -i "s/ESI_SHELL_VERSION=.*/ESI_SHELL_VERSION=${SEMVER}-$(git rev-parse --short HEAD)/g" esi-shell - - - run: grep ESI_SHELL_VERSION esi-shell - deploy: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -53,6 +47,12 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - run: | + SEMVER=$(grep -Po '"version": "\K[^"]*' package.json) + sed -i "s/ESI_SHELL_VERSION=.*/ESI_SHELL_VERSION=${SEMVER}-$(git rev-parse --short HEAD)/g" esi-shell + + - run: grep ESI_SHELL_VERSION esi-shell + - name: Setup Pages uses: actions/configure-pages@v5