Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
skorfmann committed Nov 4, 2023
1 parent 54883f4 commit 828c1b5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 14 deletions.
7 changes: 4 additions & 3 deletions actions/deploy/dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion actions/deploy/dist/index.js.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions actions/deploy/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ function run() {
core.debug(`Using ${entrypoint} ...`);
yield (0, utils_1.runCommand)('npm', ['install', '-g', `winglang@${version}`]);
core.info(`Installed winglang@${version}`);
yield (0, utils_1.runCommand)('npm', ['install', '-g', `@antfu/ni`]);
// if package.json exists, install dependencies
if (fs.existsSync(path.join(process.cwd(), 'package.json'))) {
yield (0, utils_1.runCommand)('npm', ['ci']);
core.info(`Installed NPM dependencies with npm ci`);
yield (0, utils_1.runCommand)('ni', ['--frozen']);
core.info(`Installed NPM dependencies with ni --frozen`);
}
else {
core.info(`No package.json found, skipping npm ci`);
core.info(`No package.json found, skipping ni --frozen`);
}
const tfEnv = Object.assign(Object.assign({}, process.env), { TF_IN_AUTOMATION: 'true' });
if (backend === 's3') {
Expand Down
7 changes: 4 additions & 3 deletions actions/pull-request-diff/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,14 @@ function run() {
core.debug(`Using ${entrypoint} ...`);
yield (0, utils_1.runCommand)('npm', ['install', '-g', `winglang@${version}`]);
core.info(`Installed winglang@${version}`);
yield (0, utils_1.runCommand)('npm', ['install', '-g', `@antfu/ni`]);
// if package.json exists, install dependencies
if (fs.existsSync(path.join(process.cwd(), 'package.json'))) {
yield (0, utils_1.runCommand)('npm', ['ci']);
core.info(`Installed NPM dependencies with npm ci`);
yield (0, utils_1.runCommand)('ni', ['--frozen']);
core.info(`Installed NPM dependencies with ni --frozen`);
}
else {
core.info(`No package.json found, skipping npm ci`);
core.info(`No package.json found, skipping ni --frozen`);
}
const tfEnv = Object.assign(Object.assign({}, process.env), { TF_IN_AUTOMATION: 'true' });
if (backend === 's3') {
Expand Down
2 changes: 1 addition & 1 deletion actions/pull-request-diff/dist/index.js.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions actions/pull-request-diff/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,14 @@ function run() {
core.debug(`Using ${entrypoint} ...`);
yield (0, utils_1.runCommand)('npm', ['install', '-g', `winglang@${version}`]);
core.info(`Installed winglang@${version}`);
yield (0, utils_1.runCommand)('npm', ['install', '-g', `@antfu/ni`]);
// if package.json exists, install dependencies
if (fs.existsSync(path.join(process.cwd(), 'package.json'))) {
yield (0, utils_1.runCommand)('npm', ['ci']);
core.info(`Installed NPM dependencies with npm ci`);
yield (0, utils_1.runCommand)('ni', ['--frozen']);
core.info(`Installed NPM dependencies with ni --frozen`);
}
else {
core.info(`No package.json found, skipping npm ci`);
core.info(`No package.json found, skipping ni --frozen`);
}
const tfEnv = Object.assign(Object.assign({}, process.env), { TF_IN_AUTOMATION: 'true' });
if (backend === 's3') {
Expand Down

0 comments on commit 828c1b5

Please sign in to comment.