@@ -12,35 +12,29 @@ jobs:
12
12
steps :
13
13
- uses : actions/checkout@v4
14
14
with :
15
- ssh-key : ${{ secrets.DEPLOY_KEY_PRIVATE }}
15
+ ref : ${{ github.ref }}
16
16
- uses : pnpm/action-setup@v4
17
17
with :
18
18
version : latest
19
19
- uses : actions/setup-node@v4
20
20
with :
21
21
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
33
23
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 .
36
28
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 }}
38
33
39
- git commit --all --message "🔖 $VERSION"
40
- git tag --annotate --message "🔖 $VERSION" --sign $VERSION
34
+ - run : |
41
35
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"
45
37
env:
38
+ COMMIT: ${{ steps.commit.outputs.commit }}
46
39
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
+ VERSION: ${{ steps.patch.outputs.VERSION }}
0 commit comments