From 5c50533b194d31c911d548b4d378e2e9d3f027ff Mon Sep 17 00:00:00 2001 From: devswithme Date: Thu, 13 Nov 2025 22:13:39 +0800 Subject: [PATCH] chore: fix ci.yml issue #7 --- .github/workflows/npm.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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