diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3e16792..9be943f 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -39,7 +39,6 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" npm version ${{ github.event.inputs.semver }} - VERSION=`cat package.json | grep version | tr -d " " | cut -d":" -f2 | tr -d "\","` >> $GITHUB_ENV git push && git push --tags - name: Publish @@ -47,6 +46,11 @@ jobs: env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - run: | + echo VERSION=$(cat package.json | grep version | tr -d " " | cut -d":" -f2 | tr -d "\",") >> $GITHUB_ENV + shell: bash + name: Set version as env var + - uses: actions/create-release@v1 name: Release id: create_release