Skip to content

Commit

Permalink
new release strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Jun 16, 2024
1 parent 7f4e54f commit 186f9ee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ jobs:

- name: bump version
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git config --global user.name '${{ github.repository_owner }}'
git config --global user.email '${{ github.repository_owner }}@users.noreply.github.com'
npm version ${{ github.ref_name }} --git-tag-version=false
git commit -am "bump version to ${{ github.ref_name }}"
git push origin HEAD:${{ github.ref }}
- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

- name: release
run: npm publish --provenance --access public
env:
Expand Down

0 comments on commit 186f9ee

Please sign in to comment.