diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 326ec75..354a0d2 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -20,7 +20,8 @@ jobs: steps: - uses: actions/checkout@v4 with: - token: ${{ secrets.GITHUB_TOKEN }} + persist-credentials: true + fetch-depth: 0 - uses: actions/setup-node@v4 with: @@ -44,7 +45,6 @@ jobs: - name: Bump version and publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | NEW_VERSION=$(npm version patch -m "ci: release %s") NEW_VERSION=${NEW_VERSION#v} # Remove 'v' prefix @@ -56,4 +56,6 @@ jobs: npm publish fi - git push https://${GH_TOKEN}@github.com/${{ github.repository }} main --follow-tags + - name: Push changes + run: | + git push origin main --follow-tags