Skip to content

Commit

Permalink
ci: add get new git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
windchime-yk committed Jul 3, 2024
1 parent 45d4fe3 commit 260fea9
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,27 @@ jobs:
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Bump version and push tag
id: tag_version
- name: Get new git tag
id: tag_version_dry_run
uses: mathieudutour/github-tag-action@v6.2
with:
dry_run: true
release_branches: main
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup JSR version
run: |
git config --local user.name "WhyK"
git config --local user.email "${{ secrets.USER_EMAIL }}"
deno task update ${{ steps.tag_version.outputs.new_tag }}
deno task update ${{ steps.tag_version_dry_run.outputs.new_tag }}
git add deno.json
git commit -m "chore: update version to ${{ steps.tag_version.outputs.new_tag }}"
git commit -m "chore: update version to ${{ steps.tag_version_dry_run.outputs.new_tag }}"
git push
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.2
with:
release_branches: main
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
env:
Expand Down

0 comments on commit 260fea9

Please # to comment.