Skip to content

Commit

Permalink
add version
Browse files Browse the repository at this point in the history
  • Loading branch information
szczecha committed Jan 28, 2025
1 parent 3fa9712 commit c44e053
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ jobs:
outputs:
ACCOUNTS: ${{ steps.accounts.outputs.ACCOUNTS }}
TESTMO_RUN_ID: ${{ steps.init-testmo.outputs.testmo-run-id }}
DASHBOARD_VERSION: ${{ steps.build-dashboard.outputs.DASHBOARD_VERSION }}
runs-on: ubuntu-22.04
needs: initialize-cloud
permissions:
Expand Down Expand Up @@ -123,7 +124,13 @@ jobs:
STATIC_URL: /
IS_CLOUD_INSTANCE: true
ONBOARDING_USER_JOINED_DATE_THRESHOLD: ${{ vars.STAGING_ONBOARDING_USER_JOINED_DATE_THRESHOLD }}
run: npm run build
run: |
npm run build
# Extract version from package.json
VERSION=$(node -p "require('./package.json').version")
echo "VERSION=$VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "DASHBOARD_VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
Expand Down Expand Up @@ -202,7 +209,7 @@ jobs:
PW_RETRIES: ${{ vars.PW_RETRIES }}
ACCOUNTS: ${{ needs.deploy-dashboard.outputs.ACCOUNTS }}
E2E_ENCODE_PASS: ${{ secrets.E2E_ENCODE_PASS }}
DASHBOARD_VERSION: "3.20.0"
DASHBOARD_VERSION: ${{ needs.deploy-dashboard.outputs.DASHBOARD_VERSION }}
BRANCH_NAME: ${{ github.ref}}
SALEOR_CLOUD_SERVICE: ${{ steps.cloud_variables.outputs.SALEOR_CLOUD_SERVICE }}

Expand Down

0 comments on commit c44e053

Please sign in to comment.