Skip to content

Commit

Permalink
ci: comment issue after release
Browse files Browse the repository at this point in the history
  • Loading branch information
northword committed Dec 28, 2023
1 parent 0951316 commit ff6dadc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,21 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
# cache: pnpm

- name: Install deps
run: |
echo "public-hoist-pattern[]=@types*" >> .npmrc
pnpm install
- name: Release to GitHub
if: github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
run: |
pnpm release --no-increment --no-git --github.release --ci --verbose
pnpm release --no-increment --no-git --github.release --ci --VV
sleep 1s
- name: Notify release
uses: apexskier/github-release-commenter@v1
continue-on-error: true
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
comment-template: |
:rocket: _This ticket has been resolved in {release_tag}. See {release_link} for release notes._
10 changes: 2 additions & 8 deletions .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,11 @@
},
"github": {
"release": false,
"assets": ["build/*.xpi", "update.json"],
"comments": {
"submit": true,
"issue": ":rocket: _This issue has been resolved in v${version}. See [${releaseName}](${releaseUrl}) for release notes._",
"pr": ":rocket: _This pull request is included in v${version}. See [${releaseName}](${releaseUrl}) for release notes._"
}
"assets": ["build/*.xpi", "update.json"]
},
"hooks": {
"bfore:init": "npm run lint",
"after:bump": "npm run build",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
"after:bump": "npm run build"
},
"plugins": {
"@release-it/keep-a-changelog": {
Expand Down

0 comments on commit ff6dadc

Please sign in to comment.