@@ -12,35 +12,29 @@ jobs:
1212 steps :
1313 - uses : actions/checkout@v4
1414 with :
15- ssh-key : ${{ secrets.DEPLOY_KEY_PRIVATE }}
15+ ref : ${{ github.ref }}
1616 - uses : pnpm/action-setup@v4
1717 with :
1818 version : latest
1919 - uses : actions/setup-node@v4
2020 with :
2121 cache : pnpm
22- node-version : 21
23- - name : Configure Git, patch, release and push
24- run : |
25- git config user.name 'github-actions[bot]'
26- git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
27-
28- git config commit.gpgsign true
29- git config gpg.format ssh
30- git config push.gpgSign 'if-asked'
31- git config tag.gpgSign true
32- git config user.signingkey 'key::${{ vars.DEPLOY_KEY_PUBLIC }}'
22+ node-version : 23
3323
34- eval `ssh-agent -s`
35- ssh-add - <<< '${{ secrets.DEPLOY_KEY_PRIVATE }}'
24+ - id : patch
25+ run : |
26+ echo "VERSION=$(pnpm version patch --no-git-tag-version)" >> "$GITHUB_OUTPUT"
27+ git add .
3628
37- VERSION=$(pnpm version patch --no-git-tag-version)
29+ - id : commit
30+ uses : qoomon/actions--create-commit@v1
31+ with :
32+ message : 🔖 ${{ steps.patch.outputs.VERSION }}
3833
39- git commit --all --message "🔖 $VERSION"
40- git tag --annotate --message "🔖 $VERSION" --sign $VERSION
34+ - run : |
4135 git push
42- git push --tags
43-
44- gh release create $VERSION --generate-notes --title $VERSION --verify-tag
36+ gh release create "$VERSION" --generate-notes --target "$COMMIT" --title "$VERSION"
4537 env:
38+ COMMIT: ${{ steps.commit.outputs.commit }}
4639 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+ VERSION: ${{ steps.patch.outputs.VERSION }}
0 commit comments