Skip to content

Commit 59417e0

Browse files
Change deployment environment in deploy-production action (#136)
1 parent f67db58 commit 59417e0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/deploy-production.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
name: Deploy Production
22

33
env:
4-
APP_LOCATION: ''
5-
OUTPUT_LOCATION: 'packages/website/build'
4+
APP_LOCATION: ""
5+
OUTPUT_LOCATION: "packages/website/build"
66

77
on:
88
push:
9-
branches: ['release/*']
9+
branches: ["release/*"]
1010

1111
permissions:
1212
contents: read
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/setup-node@v4
2626
with:
2727
node-version: 22
28-
registry-url: 'https://registry.npmjs.org'
28+
registry-url: "https://registry.npmjs.org"
2929

3030
- name: Enable Corepack
3131
run: npm i -g corepack@latest
@@ -54,14 +54,14 @@ jobs:
5454
run: |
5555
echo "Old version: ${{ steps.version-check.outputs.old }}"
5656
echo "New version: ${{ steps.version-check.outputs.new }}"
57-
57+
5858
if [ "${{ steps.version-check.outputs.new }}" != "${{ steps.version-check.outputs.old }}" ]; then
5959
echo "Versions differ. Proceeding with build and publish."
6060
6161
pnpm ui build
6262
6363
cd packages/ui
64-
64+
6565
# Check if version contains "beta"
6666
if [[ "${{ steps.version-check.outputs.new }}" == *"beta"* ]]; then
6767
echo "Publishing @synergycodes/overflow-ui@${{ steps.version-check.outputs.new }} with 'beta' tag…"
@@ -87,11 +87,11 @@ jobs:
8787
repo_token: ${{ secrets.GITHUB_TOKEN }}
8888
output_location: ${{ env.OUTPUT_LOCATION }}
8989
app_location: ${{ env.APP_LOCATION }}
90-
app_build_command: 'pnpm website build'
91-
action: 'upload'
90+
app_build_command: "pnpm website build"
91+
action: "upload"
9292
skip_api_build: true
93-
deployment_environment: 'release'
93+
deployment_environment: "Production"
9494
env:
9595
CUSTOM_BUILD_COMMAND: npm i -g corepack@latest && corepack prepare && pnpm install --frozen-lockfile && pnpm ui build && pnpm website build
9696
ENABLE_NODE_MONOREPO_BUILD: true
97-
NODE_VERSION: 22
97+
NODE_VERSION: 22

0 commit comments

Comments
 (0)