diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index e5bd3107..8df97101 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -18,10 +18,10 @@ jobs: - run: yarn install --frozen-lockfile - run: git config user.email "pmalyshev@devexperts.com" - run: git config user.name "dxpm" - - run: git checkout ${{ github.ref_name }} + - run: git checkout ${{ github.ref }} - run: npm version from-git --no-git-tag-version - run: git commit -a -m "ci:bump package version" - - run: git push https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.git + - run: git push https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.git ${{ github.ref }} - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPMJS_DEVEXPERTS_BOT_PUBLISH_TOKEN}}