Skip to content

Commit 04f2f44

Browse files
committed
ci: update release.config.js to support v2 branch
1 parent 9283595 commit 04f2f44

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/release-package.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,19 @@ jobs:
1919
conventional-changelog-conventionalcommits
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
22+
23+
- name: Get token
24+
if: steps.semantic.outputs.new_release_published == 'true'
25+
id: get_token
26+
uses: actions/create-github-app-token@v1
27+
with:
28+
app-id: ${{ secrets.APP_ID }}
29+
private-key: ${{ secrets.APP_SECRET }}
30+
2331
- name: Commit changes
2432
if: steps.semantic.outputs.new_release_published == 'true'
2533
env:
26-
GITHUB_TOKEN: ${{ steps.GITHUB_TOKEN }}
27-
GH_TOKEN: ${{ github.token }}
34+
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
2835
FILE_TO_COMMIT: CHANGELOG.md
2936
DESTINATION_BRANCH: ${{ github.ref }}
3037
run: |

release.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
branches: ["main", "vnext"],
2+
branches: ["v2", "vnext"],
33
plugins: [
44
"@semantic-release/commit-analyzer",
55
"@semantic-release/release-notes-generator",

0 commit comments

Comments
 (0)