File tree Expand file tree Collapse file tree 4 files changed +12
-13
lines changed
Expand file tree Collapse file tree 4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 1- name : Validate
1+ name : Release
22
33on :
44 push :
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 }}
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -103,9 +103,13 @@ function main() {
103103
104104 const changelog = `
105105## ${ pkg . version } (${ date } )
106+
106107High level enhancements
108+
107109- TODO HIGHLIGHTS
110+
108111Other enhancements and bug fixes
112+
109113${ formattedCommits . join ( "\n" ) }
110114 ` ;
111115
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ import { execSync } from "child_process";
1010import fs from "fs" ;
1111import path from "path" ;
1212
13- import { yellow } from "chalk" ;
14-
1513import { version } from "../lerna.json" ;
1614import { createDryRun } from "./utils/dry-run" ;
1715import { 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
6861function configureGit ( ) {
@@ -77,6 +70,11 @@ function configureGit() {
7770}
7871
7972function 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
108106function 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 ) {
You can’t perform that action at this time.
0 commit comments