Skip to content

Commit

Permalink
feat(ci): fix publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Apr 26, 2021
1 parent eb573b5 commit 4c6e91a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
const Configuration = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [1, 'always', ['repo', 'dotnet', 'core', 'typescript', 'ci']],
'scope-enum': [
1,
'always',
['repo', 'dotnet', 'core', 'typescript', 'ci', 'release'],
],
'type-enum': [1, 'always', ['test', 'docs', 'chore', 'feat', 'fix']],
},
};
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/patch-package-versions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function PatchPackageVersions(newVersion: string, updateGit = true) {
});
execSync(
`git commit ${
idx > 0 ? '--amend --no-edit' : '-m "chore(): bump version"'
idx > 0 ? '--amend --no-edit' : '-m "chore(release): bump version"'
}`,
{ stdio: ['ignore', 'inherit', 'inherit'] }
);
Expand Down
2 changes: 1 addition & 1 deletion tools/scripts/publish-all/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function PublishAll(version, tag = 'latest') {
const workspace: WorkspaceJsonConfiguration = readJson('workspace.json');
const rootPkg = readJson('package.json');

PatchPackageVersions(version);
PatchPackageVersions(version, false);

execSync('npx nx run-many --all --target="build" --with-deps', {
stdio: 'inherit',
Expand Down

0 comments on commit 4c6e91a

Please sign in to comment.