Skip to content

Commit

Permalink
fix: try this approach to lifecycle events
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Feb 13, 2023
1 parent 0b1e429 commit 4e5ecff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
18 changes: 12 additions & 6 deletions .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ plugins:
- '@semantic-release/commit-analyzer'
- ['@semantic-release/release-notes-generator', { 'writerOpts': { 'commitsSort': ['subject', 'scope'] } }]
- '@semantic-release/changelog'
# `npm` must be before `git` so the `npm` command can properly bump
# the package*.json files before we commit the changes
- '@semantic-release/npm'
- [
'@semantic-release/git',
{
Expand All @@ -19,10 +22,13 @@ plugins:
message: "build(release): 🚀 v${nextRelease.version} 🦉\n\n${nextRelease.notes}\n[skip release ci]",
},
]
# `npm` must be after `git` because we need the `prepare`step of the `git` plugin
# to execute first so it can create the build commit since we do some add'l tagging
# in the `postversion` npm hook
- '@semantic-release/npm'
# Lightweight alternative to `@semantic-release/github` that creates a draft release
- ['@semantic-release/exec', { 'publishCmd': 'gh release create ${nextRelease.version} --draft --generate-notes' }]
- [
'@semantic-release/exec',
{
# Adds a couple extra tags as aliases for our GitHub Actions users
'prepareCmd': 'git tag ${nextRelease.version} && ./bin/set-major-version-tag.js',
# Lightweight alternative to `@semantic-release/github` that creates a draft release
'publishCmd': 'gh release create ${nextRelease.version} --draft --generate-notes',
},
]
# dryRun: true # TODO: remove this
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
"build": "tsc",
"debug": "ts-node src/cli.ts",
"lint": "eslint . bin/rdme --ext .js,.ts",
"postversion": "git tag $npm_package_version && ./bin/set-major-version-tag.js",
"prebuild": "rm -rf dist/",
"prepack": "npm run build",
"prepare": "husky install",
Expand Down

0 comments on commit 4e5ecff

Please sign in to comment.