chore: developer release v2.1.0 #64
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: Push Events (Developer) | |
on: | |
push: | |
branches: | |
- development | |
paths: | |
- "src/developer/**" | |
- ".github/workflows/push.developer.yml" | |
- "release-please-config.json" | |
- ".release-please-manifest.json" | |
defaults: | |
run: | |
working-directory: src/developer | |
permissions: | |
contents: write | |
id-token: write | |
pull-requests: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🪙 Convert token | |
uses: tibdex/github-app-token@v1 | |
id: generate_token | |
with: | |
app_id: ${{ secrets.UGRC_RELEASE_BOT_APP_ID }} | |
private_key: ${{ secrets.UGRC_RELEASE_BOT_APP_KEY }} | |
- name: ⬇️ Set up code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ steps.generate_token.outputs.token }} | |
- name: 🚀 Create release | |
uses: google-github-actions/release-please-action@v3 | |
id: release-please | |
with: | |
token: ${{ steps.generate_token.outputs.token }} | |
changelog-types: > | |
[{"type":"feat","section":"🚀 Features","hidden":false}, | |
{"type":"fix","section":"🐛 Bug Fixes","hidden":false}, | |
{"type":"deps","section":"🌲 Dependencies","hidden":false}, | |
{"type":"docs","section":"📖 Documentation Improvements","hidden":false}, | |
{"type":"style","section":"🎨 Design Improvements","hidden":false}, | |
{"type":"ci","section":"⚙️ Continuous Integration Changes","hidden":true}, | |
{"type":"chore","section":"🧰 Maintenance","hidden":true}] | |
default-branch: ${{ github.ref_name }} | |
monorepo-tags: true | |
command: manifest | |
deploy-firebase-dev: | |
name: 🚀 Deploy to Firebase (dev) | |
runs-on: ubuntu-latest | |
environment: | |
name: dev | |
steps: | |
- name: ⬇️ Set up code | |
uses: actions/checkout@v3 | |
- name: ⎔ Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
cache: npm | |
cache-dependency-path: src/developer/package-lock.json | |
- name: 📥 Download dependencies | |
shell: bash | |
run: npm ci | |
- name: 🏗 Run build command | |
shell: bash | |
run: npm run build | |
env: | |
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }} | |
VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }} | |
VITE_FIREBASE_AUTH_DOMAIN: ${{ secrets.VITE_FIREBASE_AUTH_DOMAIN }} | |
VITE_FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.VITE_FIREBASE_MESSAGING_SENDER_ID }} | |
VITE_FIREBASE_PROJECT_ID: ${{ secrets.VITE_FIREBASE_PROJECT_ID }} | |
VITE_FIREBASE_STORAGE_BUCKET: ${{ secrets.VITE_FIREBASE_STORAGE_BUCKET }} | |
- name: 🪣 Cache firebase | |
uses: actions/cache@v3 | |
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@v1 | |
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 --only hosting --project ${{ secrets.PROJECT_ID }} |