Skip to content

Commit

Permalink
fix(deps): Limit semantic-release peer-dep to <20
Browse files Browse the repository at this point in the history
There is a breaking ESM change in `semantic-release` 20.
  • Loading branch information
pmowrer committed Jan 17, 2024
1 parent 301e957 commit b38ced7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
node-version: 20
# semantic-release dry-run workaround https://github.com/semantic-release/semantic-release/issues/1890#issuecomment-974512960
- run: git checkout -b ${{ github.head_ref }}
- run: unset GITHUB_ACTIONS && yarn && yarn run semantic-release-github-pr --debug
- run: unset GITHUB_ACTIONS && npx semantic-release-github-pr --debug
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20
- run: yarn && yarn run semantic-release --debug
- run: npx semantic-release --debug
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@
},
"license": "MIT",
"peerDependencies": {
"semantic-release": ">=11"
"semantic-release": ">=11 < 20"
},
"devDependencies": {
"husky": "^4.2.1",
"jest": "^25.1.0",
"lint-staged": "^10.0.4",
"prettier": "^1.19.1",
"semantic-release": "^17.0.1",
"semantic-release-github-pr": "^6.0.0"
"prettier": "^1.19.1"
},
"dependencies": {},
"husky": {
Expand Down

0 comments on commit b38ced7

Please sign in to comment.