Skip to content

Commit 59ee167

Browse files
authored
Rename release workflow (#114)
1 parent 6752d71 commit 59ee167

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Validate
1+
name: Release
22

33
on:
44
push:
@@ -24,10 +24,8 @@ jobs:
2424
with:
2525
node-version: "*"
2626
registry-url: "https://registry.npmjs.org"
27-
- name: Install
28-
run: yarn install --frozen-lockfile
2927
- name: Release
30-
run: yarn release:publish
28+
run: npx ts-node --transpile-only scripts/publish.ts
3129
env:
3230
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3331
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"@typescript-eslint/eslint-plugin": "^4.0.0",
4141
"@typescript-eslint/parser": "^4.0.0",
4242
"babel-eslint": "^10.0.0",
43-
"chalk": "^4.1.2",
4443
"cross-env": "^7.0.3",
4544
"cypress": "^8.7.0",
4645
"eslint": "^7.5.0",

scripts/changelog.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,13 @@ function main() {
103103

104104
const changelog = `
105105
## ${pkg.version} (${date})
106+
106107
High level enhancements
108+
107109
- TODO HIGHLIGHTS
110+
108111
Other enhancements and bug fixes
112+
109113
${formattedCommits.join("\n")}
110114
`;
111115

scripts/publish.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ import { execSync } from "child_process";
1010
import fs from "fs";
1111
import path from "path";
1212

13-
import { yellow } from "chalk";
14-
1513
import { version } from "../lerna.json";
1614
import { createDryRun } from "./utils/dry-run";
1715
import { getOutput } from "./utils/get-output";
@@ -58,11 +56,6 @@ function checkoutCode() {
5856
});
5957

6058
REPO_ROOT = path.join(BUILD_PATH, REPO);
61-
62-
safeExec(`yarn install`, {
63-
cwd: REPO_ROOT,
64-
stdio: "ignore",
65-
});
6659
}
6760

6861
function configureGit() {
@@ -77,6 +70,11 @@ function configureGit() {
7770
}
7871

7972
function buildAndPublish() {
73+
safeExec(`yarn install --frozen-lockfile`, {
74+
cwd: REPO_ROOT,
75+
stdio: "ignore",
76+
});
77+
8078
printBanner("Building Packages");
8179

8280
safeExec(`yarn lerna run build --no-private`, {
@@ -107,7 +105,7 @@ function versions() {
107105

108106
function main() {
109107
if (versions().includes(`v${version}`)) {
110-
console.log(yellow(`SKIPPING: Version ${version} already exists.`));
108+
console.log(`\x1b[33mSKIPPING: Version ${version} already exists.\x1b[0m`);
111109
return;
112110
}
113111
if (!process.env.CI) {

0 commit comments

Comments
 (0)