Address review comments

This commit is contained in:
Edd 2022-04-11 14:54:10 +01:00
parent 62944b89cd
commit 0e13248bee
2 changed files with 2 additions and 7 deletions

View File

@ -19,10 +19,6 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
with:
main-branch-name: master
- name: Use Node.js 16
id: Node
uses: actions/setup-node@v2

View File

@ -4,6 +4,8 @@
* Runs the fleek deploy process based on nx:affected, but only for sites
* that have a .fleek.json file
*/
const { existsSync } = require('fs');
const { execSync } = require('child_process');
// Fleek CLI requires this variable to be set
if (!process.env['FLEEK_API_KEY']) {
@ -11,9 +13,6 @@ if (!process.env['FLEEK_API_KEY']) {
process.exit(1);
}
const { existsSync } = require('fs');
const { execSync } = require('child_process');
// The folder containing NX projects
const projectPath = './apps/';
// The Fleek project file, the existence indicates a deployed app