Skip to content

Commit

Permalink
ci: update actions (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas authored Dec 7, 2023
1 parent 0e9ed0e commit 63d7eb7
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 26 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/manual-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,20 @@ name: Manual deploy fusion app PROD
on:
workflow_dispatch:
inputs:
appKey:
type: string
category:
type: choice
description: Which app to deploy to production
options:
- handover
- mechanical-completion
- swcr
- electrical-consumers
- heat-trace
- loop
- pipetest
- punch
- scopechangerequest
- workorder
permissions:
actions: read
checks: write
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,20 @@ name: Manual deploy fusion app TEST🚀
on:
workflow_dispatch:
inputs:
appKey:
type: string
category:
type: choice
description: Which app to deploy to test
options:
- handover
- mechanical-completion
- swcr
- electrical-consumers
- heat-trace
- loop
- pipetest
- punch
- scopechangerequest
- workorder
permissions:
actions: read
checks: write
Expand Down Expand Up @@ -35,11 +46,11 @@ jobs:
uses: ./.github/actions/pnpm-setup

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

- name: 'Deploy affected apps to Fusion CI 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 pr:deploy --filter='${{inputs.appKey}}' --concurrency 1 -- --token ${{ steps.get-fusion-token.outputs.token }}
run: npx turbo run pr:deploy --filter='${{inputs.category}}' --concurrency 1 -- --token ${{ steps.get-fusion-token.outputs.token }}
4 changes: 2 additions & 2 deletions apps/electricalconsumers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"dev": "fusion-framework-cli app dev",
"dev:local": "fusion-framework-cli app dev -c app.config.local.js",
"build": "tsc -b -f",
"pr:deploy": "npx ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "npx ts-node --esm ../../github-action/src/releaseMain.ts release"
"pr:deploy": "ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "ts-node --esm ../../github-action/src/releaseMain.ts release"
},
"dependencies": {
"@cc-components/electricalconsumersapp": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions apps/heattrace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"dev": "fusion-framework-cli app dev",
"dev:local": "fusion-framework-cli app dev -c app.config.local.js",
"build": "tsc -b -f",
"pr:deploy": "npx ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "npx ts-node --esm ../../github-action/src/releaseMain.ts release"
"pr:deploy": "ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "ts-node --esm ../../github-action/src/releaseMain.ts release"
},
"dependencies": {
"@cc-components/heattraceapp": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions apps/loop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dev": "fusion-framework-cli app dev",
"dev:local": "fusion-framework-cli app dev -c app.config.local.js",
"build": "tsc -b -f",
"pr:deploy": "npx ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "npx ts-node --esm ../../github-action/src/releaseMain.ts release"
"pr:deploy": "ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "ts-node --esm ../../github-action/src/releaseMain.ts release"
},
"dependencies": {
"@cc-components/loopapp": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions apps/mechanicalcompletion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"dev": "fusion-framework-cli app dev",
"dev:local": "fusion-framework-cli app dev -c app.config.local.js",
"build": "tsc -b -f",
"pr:deploy": "npx ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "npx ts-node --esm ../../github-action/src/releaseMain.ts release"
"pr:deploy": "ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "ts-node --esm ../../github-action/src/releaseMain.ts release"
},
"dependencies": {
"@cc-components/mechanicalcompletionapp": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions apps/piping/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"dev": "fusion-framework-cli app dev",
"dev:local": "fusion-framework-cli app dev -c app.config.local.js",
"build": "tsc -b -f",
"pr:deploy": "npx ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "npx ts-node --esm ../../github-action/src/releaseMain.ts release"
"pr:deploy": "ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "ts-node --esm ../../github-action/src/releaseMain.ts release"
},
"dependencies": {
"@cc-components/pipingapp": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions apps/punch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dev": "fusion-framework-cli app dev",
"dev:local": "fusion-framework-cli app dev -c app.config.local.js",
"build": "tsc -b -f",
"pr:deploy": "npx ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "npx ts-node --esm ../../github-action/src/releaseMain.ts release"
"pr:deploy": "ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "ts-node --esm ../../github-action/src/releaseMain.ts release"
},
"dependencies": {
"@cc-components/punchapp": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions apps/scopechangerequest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"dev": "fusion-framework-cli app dev",
"dev:local": "fusion-framework-cli app dev -c app.config.local.js",
"build": "tsc -b -f",
"pr:deploy": "npx ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "npx ts-node --esm ../../github-action/src/releaseMain.ts release"
"pr:deploy": "ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "ts-node --esm ../../github-action/src/releaseMain.ts release"
},
"dependencies": {
"@cc-components/scopechangerequestapp": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions apps/swcr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"dev": "fusion-framework-cli app dev",
"dev:local": "fusion-framework-cli app dev -c app.config.local.js",
"build": "tsc -b -f",
"pr:deploy": "npx ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "npx ts-node --esm ../../github-action/src/releaseMain.ts release"
"pr:deploy": "ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "ts-node --esm ../../github-action/src/releaseMain.ts release"
},
"dependencies": {
"@cc-components/shared": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions apps/workorder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"dev": "fusion-framework-cli app dev",
"dev:local": "fusion-framework-cli app dev -c app.config.local.js",
"build": "tsc -b -f",
"pr:deploy": "npx ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "npx ts-node --esm ../../github-action/src/releaseMain.ts release"
"pr:deploy": "ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "ts-node --esm ../../github-action/src/releaseMain.ts release"
},
"dependencies": {
"@cc-components/shared": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"scripts": {
"dev": "fusion-framework-cli app dev",
"build": "tsc -b -f",
"pr:deploy": "npx ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "npx ts-node --esm ../../github-action/src/releaseMain.ts release"
"pr:deploy": "ts-node --esm ../../github-action/src/releasePr.ts release",
"fprd:deploy": "ts-node --esm ../../github-action/src/releaseMain.ts release"
},
"dependencies": {
"@cc-components/<%= projectName%>app": "workspace:^",
Expand Down

0 comments on commit 63d7eb7

Please sign in to comment.