@akash-chowdhury-24/deployhub 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/utils/github-actions.js +10 -1
package/package.json
CHANGED
|
@@ -127,6 +127,15 @@ export function getCliInstallSpec(cliSource) {
|
|
|
127
127
|
return normalized;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Shell command to run deployhub build from the installed scoped package.
|
|
132
|
+
* Uses node directly so it works reliably when installed from a private GitHub repo.
|
|
133
|
+
* @returns {string}
|
|
134
|
+
*/
|
|
135
|
+
export function getCliBuildCommand() {
|
|
136
|
+
return `node ./node_modules/${NPM_PACKAGE}/src/cli/index.js build`;
|
|
137
|
+
}
|
|
138
|
+
|
|
130
139
|
/**
|
|
131
140
|
* @returns {string}
|
|
132
141
|
*/
|
|
@@ -335,7 +344,7 @@ ${githubGitConfigStep} - name: Install project dependencies
|
|
|
335
344
|
run: ${installDepsCommand}
|
|
336
345
|
${platformSteps ? `${platformSteps}\n` : ''} - name: Install DeployHub CLI
|
|
337
346
|
run: npm install ${installSpec} --no-save
|
|
338
|
-
- run:
|
|
347
|
+
- run: ${getCliBuildCommand()}
|
|
339
348
|
env:
|
|
340
349
|
${envBlock}
|
|
341
350
|
`;
|