Skip to content

chore(deps): bump remeda from 2.33.5 to 2.33.6 #285

chore(deps): bump remeda from 2.33.5 to 2.33.6

chore(deps): bump remeda from 2.33.5 to 2.33.6 #285

name: Deploy to Firebase Hosting on PR
on:
pull_request:
pull_request_target:
permissions:
checks: write
contents: read
pull-requests: write
jobs:
check_access:
runs-on: ubuntu-latest
if: >
github.event.pull_request.head.repo.full_name == github.repository &&
(
(github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') ||
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]')
)
outputs:
status: ${{ steps.check.outcome }}
steps:
- id: check
name: Check if the PR author has access to the Firebase project
env:
FIREBASE_SERVICE_ACCOUNT_ARC_CODEGOLF: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ARC_CODEGOLF }}
continue-on-error: true
run: |
if [ -z "$FIREBASE_SERVICE_ACCOUNT_ARC_CODEGOLF" ]; then
echo "The FIREBASE_SERVICE_ACCOUNT_ARC_CODEGOLF secret is not set."
exit 1
fi
build_and_preview:
needs: check_access
if: needs.check_access.outputs.status == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "20"
- run: npm ci
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_ARC_CODEGOLF }}
projectId: arc-codegolf