chore: explorer release v2.6.0 #90
This file contains hidden or 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: Push Events (Explorer) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "src/explorer/**" | |
| - ".github/workflows/push.explorer.yml" | |
| defaults: | |
| run: | |
| working-directory: src/explorer | |
| permissions: | |
| contents: read | |
| id-token: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy-dev: | |
| name: 🚀 Staging deployment | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: dev | |
| steps: | |
| - name: ⬇️ Set up code | |
| uses: actions/checkout@v6 | |
| with: | |
| show-progress: false | |
| - name: ⎔ Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| cache: npm | |
| cache-dependency-path: src/explorer/package-lock.json | |
| - name: 📥 Download dependencies | |
| shell: bash | |
| run: npm ci | |
| - name: 📃 Configure 3rd party notice | |
| uses: agrc/third-party-notice-composite-action@v1 | |
| with: | |
| working-directory: src/explorer | |
| - name: 📨 Forward environment variables | |
| shell: bash | |
| run: | | |
| touch ./.env | |
| echo "SELF_SERVICE_URL=${{ vars.SELF_SERVICE_URL }}" >> ./.env | |
| - name: 🏗 Run build command | |
| shell: bash | |
| run: npm run build | |
| - name: 🔢 Get firebase version | |
| id: cache-settings | |
| run: | | |
| echo "firebase-tools=$(npm list -s --depth=0 | grep firebase-tools | tail -n 1 | sed 's/.*@//g')" >> GITHUB_OUTPUT | |
| - name: 🪣 Cache firebase | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.cache/firebase | |
| key: ${{ runner.os }}-firebase-${{ steps.cache-settings.outputs.firebase-tools }} | |
| - name: 🗝️ Authenticate to Google Cloud | |
| id: auth | |
| uses: google-github-actions/auth@v3 | |
| 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 }} |