fix: repair build by fixing typescript bug #52
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
name: Deploy to Firebase Hosting | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
if: "github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, 'release-please--branches--main')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v2 | |
- name: 🫡 Setup node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: 📝 Set version as environment variable | |
run: | | |
echo 'VITE_VERSION=$npm_package_version' > .env | |
echo 'VITE_NETWORK=mainnet' >> .env | |
echo 'VITE_PREPROD_URL=https://preprod.walkinwallet.com' >> .env | |
echo 'VITE_PREVIEW_URL=https://preview.walkinwallet.com' >> .env | |
echo 'VITE_MAINNET_URL=https://walkinwallet.com' >> .env | |
- name: 🔨 Download dependencies and build hosting | |
run: npm ci && npm run build | |
- name: 🚀 Deploy to Firebase hosting | |
uses: w9jds/firebase-action@master | |
with: | |
args: deploy --only hosting | |
env: | |
GCP_SA_KEY: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_WALKINWALLET }} |