Skip to content

Commit

Permalink
Another possible solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorylavery committed Oct 29, 2024
1 parent a98ea3d commit c4b11ca
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ jobs:
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm version minor -m "[ci skip] v%s"
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- run: git config user.name "$GITHUB_ACTOR"
- run: npm version minor -m "v%s"
- run: VERSION=$(node -p "require('./package.json').version")
- run: git tag ${VERSION}
- run: git push "https://$GITHUB_ACTOR:${{ secrets.ACCESS_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" --follow-tags
- run: git push "https://$GITHUB_ACTOR:${{ secrets.ACCESS_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" --tags
- run: npm ci
- run: npm publish
env:
Expand Down

0 comments on commit c4b11ca

Please sign in to comment.