developer: v2.2.8 #14
Workflow file for this run
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: Release Events (Self Service) | |
on: | |
release: | |
types: | |
- published | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: src/explorer | |
permissions: | |
contents: write | |
id-token: write | |
pull-requests: write | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
deploy-firebase-dev: | |
name: 🚀 Deploy to Firebase (dev) | |
if: ${{ startsWith(github.ref, 'refs/tags/explorer') }} | |
runs-on: ubuntu-latest | |
environment: | |
name: dev | |
steps: | |
- name: ⬇️ Set up code | |
uses: actions/checkout@v4 | |
with: | |
show-progress: false | |
- name: ⎔ Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: npm | |
cache-dependency-path: src/explorer/package-lock.json | |
- name: 📥 Download dependencies | |
shell: bash | |
run: npm ci | |
- name: 🏗 Run build command | |
shell: bash | |
run: npm run build | |
- name: 🪣 Cache firebase | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/firebase | |
key: ${{ runner.OS }}-firebase-${{ hashFiles('**/*.cache/firebase/**') }} | |
restore-keys: | | |
${{ runner.OS }}-firebase- | |
${{ runner.OS }}- | |
- name: 🗝️ Authenticate to Google Cloud | |
id: auth | |
uses: google-github-actions/auth@v2 | |
with: | |
access_token_scopes: "email, openid, https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/firebase" | |
workload_identity_provider: ${{ secrets.IDENTITY_PROVIDER }} | |
service_account: ${{ secrets.SERVICE_ACCOUNT_EMAIL }} | |
create_credentials_file: true | |
- name: 🚀 Firebase deploy | |
shell: bash | |
run: npx firebase-tools deploy --project ${{ secrets.PROJECT_ID }} |