generated from bcgov/bcrs-template-ui
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from kialj876/18160-pnpm-deployment-fix-7
cleanup pnpm flow
- Loading branch information
Showing
3 changed files
with
29 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
.github/actions/firebase/files/cloudbuild-pnpm-nested-pckg-cd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
steps: | ||
# install / Generate the static site | ||
- name: node:$_DEPLOYMENT_NODE_VERSION | ||
script: | | ||
#!/usr/bin/env bash | ||
npm install --global pnpm | ||
pnpm -F $_DEPLOYMENT_PCKG_NAME install | ||
pnpm -F $_DEPLOYMENT_PCKG_NAME build | ||
# | ||
# Deploy to firebase channel, using the PR # | ||
# store log to /workspace to get the channel URL | ||
# | ||
- name: gcr.io/$_DEPLOYMENT_PROJECT/firebase | ||
entrypoint: bash | ||
args: ['-c', 'firebase deploy --project=$_DEPLOYMENT_PROJECT --config=firebase-$_DEPLOYMENT_ENVIRONMENT.json --only hosting:$_DEPLOYMENT_HOST_NAME'] | ||
|
||
substitutions: | ||
_DEPLOYMENT_ENVIRONMENT: '${_DEPLOYMENT_ENVIRONMENT}' | ||
_DEPLOYMENT_PROJECT: '${_DEPLOYMENT_PROJECT}' | ||
_DEPLOYMENT_NODE_VERSION: '${_DEPLOYMENT_NODE_VERSION}' | ||
_DEPLOYMENT_HOST_NAME: '${_DEPLOYMENT_HOST_NAME}' | ||
_DEPLOYMENT_PCKG_NAME: '${_DEPLOYMENT_PCKG_NAME}' | ||
|
||
|
||
options: | ||
logging: CLOUD_LOGGING_ONLY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters