Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
maxidragon committed Dec 21, 2023
2 parents dba8cbc + 3ad71a8 commit 58a1819
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.AVORTYBOT_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand All @@ -23,9 +26,10 @@ jobs:
- name: Update version in package.json
run: |
npm --no-git-tag-version version ${{ steps.extract_tag.outputs.VERSION }}
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global user.email "contact.avorty@gmail.com"
git config --global user.name "AvortyBot"
git commit -am "chore: bump version to ${{ steps.extract_tag.outputs.VERSION }}"
git push origin HEAD:main
- name: Publish to npm
run: npm publish --access public
env:
Expand Down

0 comments on commit 58a1819

Please sign in to comment.