Skip to content

Commit

Permalink
update workflow and bundletgz
Browse files Browse the repository at this point in the history
Signed-off-by: zFernand0 <[email protected]>
  • Loading branch information
zFernand0 committed Feb 6, 2024
1 parent 282a5c9 commit 82c29cc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

- name: Update Dependencies
id: npm-update
uses: zowe-actions/octorelease/script@reg-config
uses: zowe-actions/octorelease/script@v1
with:
config-dir: .github
script: npmUpdate
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
run: npm ci

- name: Update Dependencies
uses: zowe-actions/octorelease/script@reg-config
uses: zowe-actions/octorelease/script@v1
env:
GIT_COMMITTER_NAME: zowe_robot
GIT_COMMITTER_EMAIL: [email protected]
Expand All @@ -126,7 +126,7 @@ jobs:
- name: Build Source
run: npm run build

- uses: zowe-actions/octorelease@reg-config
- uses: zowe-actions/octorelease@v1
env:
GIT_COMMITTER_NAME: ${{ secrets.ZOWE_ROBOT_USER }}
GIT_COMMITTER_EMAIL: ${{ secrets.ZOWE_ROBOT_EMAIL }}
Expand Down
8 changes: 6 additions & 2 deletions scripts/bundleTgz.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ fsE.copyFileSync(pkgJsonFile, pkgJsonFile + ".bak");
try {
// Install node_modules directly inside packages/cli
execCmd("npm run preshrinkwrap");

execCmd(`${npmInstallCmd} ${path.relative(__dirname, "../dist/zowe-cics-for-zowe-sdk-" + tempPkgJson.version + ".tgz")}`);
try {
execCmd(`npm view @zowe/cics-for-zowe-sdk`);
} catch (err) {
const sdkTgzPath = path.relative(__dirname, "../dist/zowe-cics-for-zowe-sdk-" + tempPkgJson.version + ".tgz");
execCmd(`${npmInstallCmd} ${sdkTgzPath}`);
}
execCmd(npmInstallCmd);
for (const zowePkgDir of fsE.readdirSync(path.join(cliPkgDir, "node_modules", "@zowe"))) {
const srcDir = path.join("node_modules", "@zowe", zowePkgDir);
Expand Down

0 comments on commit 82c29cc

Please sign in to comment.