-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.releaserc
28 lines (24 loc) · 1.02 KB
/
.releaserc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
branches:
- main
plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/changelog"
# Custom commands for updating package versions and publishing
- - "@semantic-release/exec"
- verifyConditionsCmd: >
echo "//registry.npmjs.org/:_authToken = $NPM_TOKEN" > .npmrc
&& npm whoami --userconfig .npmrc
prepareCmd: >
sed -E 's!("@beet-bot/.+"|"version"): ".+"!\1: "${nextRelease.version}"!' --in-place packages/*/package.json
&& pnpm install --no-frozen-lockfile
&& pnpm -r build
&& find packages -name package.json -execdir npm pack \;
publishCmd: >
find packages -name package.json -execdir npm publish --userconfig ../../.npmrc --access public \;
# Commit updated changelog, package.json and lockfile
- - "@semantic-release/git"
- assets: ["CHANGELOG.md", "packages/*/package.json", "pnpm-lock.yaml"]
# Include package tarballs
- - "@semantic-release/github"
- assets: "packages/*/*.tgz"