Skip to content

Commit

Permalink
fix: attempt automatic release (5)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongaar committed Nov 24, 2022
1 parent 535b121 commit 13146c7
Show file tree
Hide file tree
Showing 6 changed files with 559 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
workspaces = true
workspaces-update = false
include-workspace-root = true
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "package.json"],
"assets": ["CHANGELOG.md", "package.json", "packages/*/package.json"],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}\n\n[skip ci]"
}
]
Expand Down
550 changes: 550 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ plugins:
spec: "@yarnpkg/plugin-typescript"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"

yarnPath: .yarn/releases/yarn-3.2.4.cjs
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mokr/root",
"version": "0.0.1",
"version": "0.0.2",
"private": true,
"license": "MIT",
"workspaces": [
Expand All @@ -25,7 +25,7 @@
"format": "prettier --write --ignore-unknown .",
"doctoc": "doctoc README.md",
"leasot": "leasot --exit-nicely --reporter markdown --ignore \"**/node_modules\" \"**/*.ts\" > TODO.md",
"publish": "yarn workspaces foreach --topological --verbose npm publish"
"publish-all": "yarn workspaces foreach --topological --verbose npm publish"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.1",
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export async function initYarn({ directory }: DirOption) {
await writeGitignore({ directory, lines: GITIGNORE_LINES, append: false });
await addYarnPlugin({ directory, name: "interactive-tools" });
await addYarnPlugin({ directory, name: "workspace-tools" });
await addYarnPlugin({ directory, name: "version" });
}

export async function addYarnPlugin({
Expand Down

0 comments on commit 13146c7

Please sign in to comment.