From 576d2bad6512b53f3ab1ddfd4429d381a69917de Mon Sep 17 00:00:00 2001 From: Jan Librowski Date: Tue, 19 Aug 2025 15:31:22 +0200 Subject: [PATCH] Change deployment environment in deploy-production action --- .github/workflows/deploy-production.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 994be7d..d82d844 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -1,12 +1,12 @@ name: Deploy Production env: - APP_LOCATION: '' - OUTPUT_LOCATION: 'packages/website/build' + APP_LOCATION: "" + OUTPUT_LOCATION: "packages/website/build" on: push: - branches: ['release/*'] + branches: ["release/*"] permissions: contents: read @@ -25,7 +25,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 22 - registry-url: 'https://registry.npmjs.org' + registry-url: "https://registry.npmjs.org" - name: Enable Corepack run: npm i -g corepack@latest @@ -54,14 +54,14 @@ jobs: run: | echo "Old version: ${{ steps.version-check.outputs.old }}" echo "New version: ${{ steps.version-check.outputs.new }}" - + if [ "${{ steps.version-check.outputs.new }}" != "${{ steps.version-check.outputs.old }}" ]; then echo "Versions differ. Proceeding with build and publish." pnpm ui build cd packages/ui - + # Check if version contains "beta" if [[ "${{ steps.version-check.outputs.new }}" == *"beta"* ]]; then echo "Publishing @synergycodes/overflow-ui@${{ steps.version-check.outputs.new }} with 'beta' tag…" @@ -87,11 +87,11 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} output_location: ${{ env.OUTPUT_LOCATION }} app_location: ${{ env.APP_LOCATION }} - app_build_command: 'pnpm website build' - action: 'upload' + app_build_command: "pnpm website build" + action: "upload" skip_api_build: true - deployment_environment: 'release' + deployment_environment: "Production" env: CUSTOM_BUILD_COMMAND: npm i -g corepack@latest && corepack prepare && pnpm install --frozen-lockfile && pnpm ui build && pnpm website build ENABLE_NODE_MONOREPO_BUILD: true - NODE_VERSION: 22 \ No newline at end of file + NODE_VERSION: 22