Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Loading