diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 58fcbc4..0a499ad 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -23,6 +23,9 @@ jobs: steps: - uses: actions/checkout@v2 + with: + persist-credentials: false + fetch-depth: 0 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 @@ -50,4 +53,8 @@ jobs: run: npm run util:changelog:commit && npm run util:version:reversion - name: Push Changelogs - run: git push && git push --tags + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} + tags: true