Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix: Try opening a PR with semantic commits (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
JForsaken authored Apr 20, 2022
1 parent d971b93 commit 60e1584
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Release
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_ZAPPER_BOT }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -34,3 +34,21 @@ jobs:

- name: Bump Version
run: pnpm semantic-release

- name: Get Package Version
id: package-version
uses: martinbeentjes/npm-get-version-action@master

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_ZAPPER_BOT }}
branch: semantic-release
title: Semantic Release
commit-message: "chore(release): Release ${{ steps.package-version.outputs.current-version }}"
body: |
⚙️ _This pull request was opened automatically from Zapper-fi/studio._
${{ needs.release.outputs.changelog }}
base: master
delete-branch: true
12 changes: 12 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"]
}
}],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "package.json"]
}
],
"@semantic-release/release-notes-generator"
]
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"@oclif/core": "^1",
"@oclif/plugin-help": "^5",
"@oclif/plugin-plugins": "^2.0.1",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/git": "^10.0.1",
"@typechain/ethers-v5": "^10.0.0",
"@types/cache-manager": "^3.4.3",
"@types/dedent": "^0.7.0",
Expand Down
36 changes: 36 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 60e1584

Please sign in to comment.