Skip to content

Commit

Permalink
fix: applications breaking in production (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas committed Nov 16, 2023
1 parent 4ec9c2f commit b9e9236
Show file tree
Hide file tree
Showing 4 changed files with 1,315 additions and 1,019 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/manual-deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Manual deploy fusion app

on:
workflow_dispatch:
inputs:
appKey:
type: string
description: Which app to deploy to test
permissions: write-all
jobs:
deploy-manual-fprd:
runs-on: ubuntu-latest
environment: fprd
steps:
- name: 'Login to Azure'
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_PROD_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
allow-no-subscriptions: true

- name: 'Obtain token for upload'
shell: bash
run: echo "FUSION_TOKEN=$(az account get-access-token --resource '${{ secrets.AZURE_RESOURCE_PROD_ID }}' | jq '.accessToken')" >> $GITHUB_ENV

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to fetch range

- name: Install Dependencies
run: npm i -g pnpm typescript && pnpm i

- name: Build monorepo
run: npx turbo run build --filter=${{inputs.appKey}}

- name: 'Deploy affected apps to Fusion FPRD env'
shell: bash
env:
#Runs out of memory when bundling more apps otherwise even though concurrency is 1
NODE_OPTIONS: '--max_old_space_size=4096'
run: npx turbo run fprd:deploy --filter=${{inputs.appKey}} --concurrency 1 -- --token ${{ env.FUSION_TOKEN }}
2 changes: 1 addition & 1 deletion libs/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"@cc-components/sharedcomponents": "workspace:^",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@equinor/workspace-ag-grid": "2.0.2-alpha.2",
"@equinor/workspace-ag-grid": "2.0.2",
"@remirror/pm": "^2.0.8",
"@remirror/react": "^2.0.27",
"@remirror/react-editors": "^1.0.38",
Expand Down
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@
"pnpm": {
"overrides": {
"react-dom": "18.2.0"
},
"peerDependencyRules": {
"allowedVersions": {
"react-dom": "18",
"react": "18"
},
"ignoreMissing": [
"react",
"react-dom",
"@babel/*",
"@types/*"
]
}
}
}
Loading

0 comments on commit b9e9236

Please sign in to comment.