Skip to content

Commit

Permalink
ci(release): move git push to release configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jan 28, 2024
1 parent 3f455fa commit 79bf158
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,4 @@ jobs:
- run: npm install --no-save @semantic-release/git
- run: npx semantic-release --debug
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- if: steps.semantic.outputs.new_release_published == 'true'
run: >-
git push
https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,19 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
"@semantic-release/npm",
"semantic-release-plugin-github-breaking-version-tag",
[
"@semantic-release/git",
{
"assets": "dist",
"message": "build(release): compiled action for ${nextRelease.version}\n\n[skip ci]"
"assets": [
"package.json",
"dist/*"
],
"message": "build(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
]
},
"dependencies": {
Expand Down

0 comments on commit 79bf158

Please sign in to comment.