Skip to content

Commit 9cf7227

Browse files
authored
ci(release): set version on release and push using git plugin (actions#22)
1 parent 7bbad93 commit 9cf7227

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/release.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,7 @@ jobs:
2626
with:
2727
app_id: ${{ vars.RELEASER_APP_ID }}
2828
private_key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
29-
30-
- id: commit
31-
uses: stefanzweifel/git-auto-commit-action@v4
32-
with:
33-
commit_message: "build: update dist files"
34-
- run: npm i semantic-release-plugin-github-breaking-version-tag
29+
- run: npm install --no-save @semantic-release/git semantic-release-plugin-github-breaking-version-tag
3530
- run: npx semantic-release
3631
env:
3732
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

package.json

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "app-token-action",
2+
"name": "create-github-app-token",
33
"private": true,
44
"type": "module",
5-
"version": "1.0.0",
5+
"version": "1.0.5",
66
"description": "GitHub Action for creating a GitHub App Installation Access Token",
77
"scripts": {
88
"build": "esbuild main.js post.js --bundle --outdir=dist --out-extension:.js=.cjs --platform=node --target=node16.16",
@@ -27,7 +27,17 @@
2727
"@semantic-release/commit-analyzer",
2828
"@semantic-release/release-notes-generator",
2929
"@semantic-release/github",
30-
"semantic-release-plugin-github-breaking-version-tag"
30+
"semantic-release-plugin-github-breaking-version-tag",
31+
[
32+
"@semantic-release/git",
33+
{
34+
"assets": [
35+
"package.json",
36+
"dist/*"
37+
],
38+
"message": "build(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
39+
}
40+
]
3141
]
3242
}
3343
}

0 commit comments

Comments
 (0)