diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 40f1f78..4f3ec92 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -34,10 +34,13 @@ jobs: registry-url: https://registry.npmjs.org/ - run: npm ci #- run: npm run dist - - name: Setup versions in \${{env}} + - name: Setup versions in ${{'${{env}}'}} run: >- - echo "PREV_PKG_VERSION=$(git tag --list 'v*' --sort=-taggerdate | head -1)" - >> "$GITHUB_ENV" + echo "git tag --list 'v*' --sort=-taggerdate" + + PREV_PKG_VERSION=$(git tag --list 'v*' --sort=-taggerdate | head -1) + + echo "PREV_PKG_VERSION=$PREV_PKG_VERSION" >> "$GITHUB_ENV" echo "PKG_VERSION=${{fromJSON(vars.versions).values[inputs.version]}}" >> "$GITHUB_ENV"