diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7c3601c..618b982 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,14 +29,9 @@ jobs: run: | VERSION_TAG=${GITHUB_REF#refs/tags/v} if [[ $VERSION_TAG == *"-"* ]]; then - echo "NPM_TAG=${VERSION_TAG#*-}" >> $GITHUB_ENV + echo ::set-output name=NPM_TAG::${VERSION_TAG#*-} else - echo "NPM_TAG=latest" >> $GITHUB_ENV + echo ::set-output name=NPM_TAG::latest + fi env: GITHUB_REF: ${{ github.ref }} - - name: Publish to NPM - run: yarn publish --new-version ${GITHUB_REF#refs/tags/v} --tag ${{ - steps.determine-npm-tag.outputs.NPM_TAG }} --no-git-tag-version - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - GITHUB_REF: ${{ github.ref }}