Skip to content

Commit

Permalink
fix(build): correct ordering of semantic-release plugins, correct p…
Browse files Browse the repository at this point in the history
…aths
  • Loading branch information
wolfy1339 committed May 19, 2023
1 parent c22f04c commit 29a738d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 35 deletions.
35 changes: 17 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,73 +46,72 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
[
"@semantic-release/npm",
"semantic-release-plugin-update-version-in-files",
{
"pkgRoot": "packages/openapi-webhooks-types"
"files": [
"packages/openapi-webhooks/generated/*"
]
}
],
[
"@semantic-release/npm",
"@semantic-release/github",
{
"pkgRoot": "packages/openapi-webhooks-types-ghec"
"assets": "packages/openapi-webhooks/generated/*.json"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "packages/openapi-webhooks-types-ghes-3.5"
"pkgRoot": "packages/openapi-webhooks"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "packages/openapi-webhooks-types-ghes-3.6"
"pkgRoot": "packages/openapi-webhooks-types"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "packages/openapi-webhooks-types-ghes-3.7"
"pkgRoot": "packages/openapi-webhooks-types-ghec"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "packages/openapi-webhooks-types-ghes-3.8"
"pkgRoot": "packages/openapi-webhooks-types-ghes-3.5"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "packages/openapi-webhooks-types-ghes-3.9"
"pkgRoot": "packages/openapi-webhooks-types-ghes-3.6"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "packages/openapi-webhooks-types-github.ae"
"pkgRoot": "packages/openapi-webhooks-types-ghes-3.7"
}
],
[
"semantic-release-plugin-update-version-in-files",
"@semantic-release/npm",
{
"files": [
"packages/openapi-webhooks/generated/*"
]
"pkgRoot": "packages/openapi-webhooks-types-ghes-3.8"
}
],
[
"@semantic-release/github",
"@semantic-release/npm",
{
"assets": "packages/openapi-webhooks/generated/*.json"
"pkgRoot": "packages/openapi-webhooks-types-ghes-3.9"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "packages/openapi-webhooks"
"pkgRoot": "packages/openapi-webhooks-types-github.ae"
}
]
]
Expand Down
31 changes: 14 additions & 17 deletions scripts/update-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,19 @@ async function updatePackage() {
pkg.release.plugins = [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
[
"semantic-release-plugin-update-version-in-files",
{
files: ["packages/openapi-webhooks/generated/*"],
},
],
[
"@semantic-release/github",
{
assets: "packages/openapi-webhooks/generated/*.json",
},
],
["@semantic-release/npm", { pkgRoot: "packages/openapi-webhooks" }],
]
.concat(
typePackages.map((packageName) => {
Expand All @@ -30,22 +42,7 @@ async function updatePackage() {
},
];
})
)
.concat([
[
"semantic-release-plugin-update-version-in-files",
{
files: ["generated/*"],
},
],
[
"@semantic-release/github",
{
assets: "generated/*.json",
},
],
["@semantic-release/npm", { pkgRoot: "packages/openapi-webhooks" }],
]);
);

await writeFile(
"package.json",
Expand Down

0 comments on commit 29a738d

Please sign in to comment.