Skip to content

Commit

Permalink
feat: deploy storybook static site in staging
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed May 16, 2023
1 parent b35d062 commit d8d964d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: 🚀 Deploy
uses: agrc/firebase-website-deploy-composite-action@v1
with:
build-command: npm run build
build-command: npm run build:stage
preview: yes
project-id: ${{ secrets.PROJECT_ID }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
identity-provider: ${{ secrets.IDENTITY_PROVIDER }}
service-account-email: ${{ secrets.SERVICE_ACCOUNT_EMAIL }}
project-id: ${{ secrets.PROJECT_ID }}
build-command: npm run build
build-command: npm run build:stage
env:
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }}
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
service-now-username: ${{ secrets.SN_USERNAME }}
service-now-password: ${{ secrets.SN_PASSWORD }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
build-command: npm run build
build-command: npm run build:prod
env:
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }}
Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"a",
"ae",
"anotherfield",
"autodocs",
"bfnontargeted",
"bftargeted",
"builtins",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
"main": "./src/functions/index.js",
"scripts": {
"build": "vite build",
"build:dev": "npm run build:dev:update-remote-config-defaults && npm run build",
"build:dev": "npm run build:dev:update-remote-config-defaults && npm run build && npm run build:storybook",
"build:dev:update-remote-config-defaults": "export GOOGLE_APPLICATION_CREDENTIALS=\"$PWD/src/functions/functions-key-dev.json\" && node src/build-scripts/updateRemoteConfigDefaults.js",
"build:prod": "npm run build:update-remote-config-defaults && npm run build",
"build:stage": "npm run build:update-remote-config-defaults && npm run build && npm run build:storybook",
"build:storybook": "storybook build --output-dir ./dist/storybook",
"build:update-remote-config-defaults": "node src/build-scripts/updateRemoteConfigDefaults.js",
"copy:arcgis": "cpy \"./node_modules/@arcgis/core/assets/**\" ./public/assets",
Expand Down

0 comments on commit d8d964d

Please sign in to comment.