File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,12 +14,24 @@ jobs:
1414 id-token : write # The OIDC ID token is used for authentication with JSR.
1515 steps :
1616 - uses : actions/checkout@v2
17+ - name : Setup Deno
18+ uses : denoland/setup-deno@v1
19+ with :
20+ deno-version : v1.x
1721 - name : Bump version and push tag
1822 id : tag_version
1923 uses : mathieudutour/github-tag-action@v6.2
2024 with :
2125 release_branches : main
2226 github_token : ${{ secrets.GITHUB_TOKEN }}
27+ - name : Setup JSR version
28+ run : |
29+ git config --local user.name "WhyK"
30+ git config --local user.email "${{ secrets.USER_EMAIL }}"
31+ deno task update ${{ steps.tag_version.outputs.new_tag }}
32+ git add deno.json
33+ git commit -m "chore: update version to ${{ steps.tag_version.outputs.new_tag }}"
34+ git push
2335 - name : Create a GitHub release
2436 uses : actions/create-release@v1
2537 env :
2840 tag_name : ${{ steps.tag_version.outputs.new_tag }}
2941 release_name : Release ${{ steps.tag_version.outputs.new_tag }}
3042 body : ${{ steps.tag_version.outputs.changelog }}
31- - name : Setup Deno
32- uses : denoland/setup-deno@v1
33- with :
34- deno-version : v1.x
3543 - name : Publish JSR
3644 run : |
37- deno task update ${{ steps.tag_version.outputs.new_tag }}
38- deno publish --allow-dirty
45+ deno publish
You can’t perform that action at this time.
0 commit comments