From d7b4ca945713dcbaf4d048ca1c243e97a43eb801 Mon Sep 17 00:00:00 2001 From: sfopsbot Date: Fri, 15 Dec 2023 17:24:58 +1100 Subject: [PATCH] fix(cicd): fix path to package --- .github/workflows/release.yml | 6 +++--- .github/workflows/sfpowerscripts-build-docker.yml | 4 ++-- .github/workflows/sfpowerscripts-copy-docker.yml | 4 ++-- .github/workflows/sfpowerscripts-promote-docker.yml | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index da087a6b6..2753915c8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,7 +77,7 @@ jobs: uses: ./.github/workflows/promotePackage.yml with: version: 'alpha' - pathToPackageJson: 'packages/sfpowerscripts-cli/package.json' + pathToPackageJson: 'packages/sfp-cli/package.json' environment: sfpowerscripts-alpha secrets: npm-token: ${{ secrets.NPM_TOKEN }} @@ -115,7 +115,7 @@ jobs: uses: ./.github/workflows/promotePackage.yml with: version: 'beta' - pathToPackageJson: 'packages/sfpowerscripts-cli/package.json' + pathToPackageJson: 'packages/sfp-cli/package.json' environment: sfpowerscripts-beta secrets: npm-token: ${{ secrets.NPM_TOKEN }} @@ -155,7 +155,7 @@ jobs: uses: ./.github/workflows/promotePackage.yml with: version: 'latest' - pathToPackageJson: 'packages/sfpowerscripts-cli/package.json' + pathToPackageJson: 'packages/sfp-cli/package.json' environment: sfpowerscripts-prod secrets: npm-token: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/sfpowerscripts-build-docker.yml b/.github/workflows/sfpowerscripts-build-docker.yml index 7ba97fe1e..258c01982 100644 --- a/.github/workflows/sfpowerscripts-build-docker.yml +++ b/.github/workflows/sfpowerscripts-build-docker.yml @@ -63,8 +63,8 @@ jobs: - name: 'Get package version and name' run: | - echo "PKG_VERSION=$(jq -r ".version" packages/sfpowerscripts-cli/package.json)" >> $GITHUB_ENV - RELEASE_NAME=$(jq -r ".release" packages/sfpowerscripts-cli/package.json) + echo "PKG_VERSION=$(jq -r ".version" packages/sfp-cli/package.json)" >> $GITHUB_ENV + RELEASE_NAME=$(jq -r ".release" packages/sfp-cli/package.json) RELEASE_NAME_AS_ARRAY=($RELEASE_NAME) RELEASE_NAME=$(echo ${RELEASE_NAME_AS_ARRAY[0]} | cut -c1-3)${RELEASE_NAME_AS_ARRAY[1]} echo "RELEASE_NAME=release-$RELEASE_NAME" >> $GITHUB_ENV diff --git a/.github/workflows/sfpowerscripts-copy-docker.yml b/.github/workflows/sfpowerscripts-copy-docker.yml index a21be93c9..89d5e1dd6 100644 --- a/.github/workflows/sfpowerscripts-copy-docker.yml +++ b/.github/workflows/sfpowerscripts-copy-docker.yml @@ -53,8 +53,8 @@ jobs: - name: 'Get package version' run: | - echo "PKG_VERSION=$(jq -r ".version" packages/sfpowerscripts-cli/package.json)" >> $GITHUB_ENV - RELEASE_NAME=$(jq -r ".release" packages/sfpowerscripts-cli/package.json) + echo "PKG_VERSION=$(jq -r ".version" packages/sfp-cli/package.json)" >> $GITHUB_ENV + RELEASE_NAME=$(jq -r ".release" packages/sfp-cli/package.json) RELEASE_NAME_AS_ARRAY=($RELEASE_NAME) RELEASE_NAME=$(echo ${RELEASE_NAME_AS_ARRAY[0]} | cut -c1-3)${RELEASE_NAME_AS_ARRAY[1]} echo "RELEASE_NAME=release-$RELEASE_NAME" >> $GITHUB_ENV diff --git a/.github/workflows/sfpowerscripts-promote-docker.yml b/.github/workflows/sfpowerscripts-promote-docker.yml index 18e18f129..c9ed1f347 100644 --- a/.github/workflows/sfpowerscripts-promote-docker.yml +++ b/.github/workflows/sfpowerscripts-promote-docker.yml @@ -37,8 +37,8 @@ jobs: - name: 'Get package version' run: | - echo "PKG_VERSION=$(jq -r ".version" packages/sfpowerscripts-cli/package.json)" >> $GITHUB_ENV - RELEASE_NAME=$(jq -r ".release" packages/sfpowerscripts-cli/package.json) + echo "PKG_VERSION=$(jq -r ".version" packages/sfp-cli/package.json)" >> $GITHUB_ENV + RELEASE_NAME=$(jq -r ".release" packages/sfp-cli/package.json) RELEASE_NAME_AS_ARRAY=($RELEASE_NAME) RELEASE_NAME=$(echo ${RELEASE_NAME_AS_ARRAY[0]} | cut -c1-3)${RELEASE_NAME_AS_ARRAY[1]} echo "RELEASE_NAME=release-$RELEASE_NAME" >> $GITHUB_ENV