Skip to content

chore(deps): bump the angular-dependencies group across 1 directory with 4 updates #514

chore(deps): bump the angular-dependencies group across 1 directory with 4 updates

chore(deps): bump the angular-dependencies group across 1 directory with 4 updates #514

name: Deploy preview
on: pull_request
concurrency:
group: deploy-preview-${{ github.ref }}
permissions:
pull-requests: write
jobs:
deploy-preview:
if: github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]'
name: Deploy preview to firebase
runs-on: ubuntu-latest
outputs:
url: ${{ steps.deploy.outputs.url }}
environment:
name: features
url: ${{ steps.deploy.outputs.url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Authenticate to Google Cloud
id: auth
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ANGULAR_MUSIC_7F2BA }}'
- name: Deploy preview
id: deploy
uses: ./.github/actions/deploy-preview
with:
channel-id: pr${{github.event.pull_request.number}}-${{github.event.pull_request.head.ref}}
expires: 14d
env:
FIREBASE_CLI_EXPERIMENTS: webframeworks
comment:
name: Comment on PR
needs: deploy-preview
runs-on: ubuntu-latest
steps:
- name: Create or update comment
uses: marocchino/sticky-pull-request-comment@v2
with:
header: deployment-preview-url
message: |
Visit the preview of this PR:
${{ needs.deploy-preview.outputs.url }}
measurements:
name: Run measurements
needs: deploy-preview
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Measure
run: npm run measure
env:
BASE_URL: ${{ needs.deploy-preview.outputs.url }}
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
- name: Create or update comment
uses: marocchino/sticky-pull-request-comment@v2
with:
header: measurements
path: measurements.md