chore(deps-dev): bump rollup from 4.24.3 to 4.24.4 in the npm_and_yarn group #89
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: Build and Deploy | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
# Allow one concurrent deployment | |
concurrency: | |
group: pages | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
run_install: true | |
- name: Setup Node.JS | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version: 18.x | |
- name: Generate pages | |
env: | |
BASE_URL: ${{ vars.BASE_URL }} | |
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }} | |
FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }} | |
FIREBASE_MEASUREMENT_ID: ${{ secrets.FIREBASE_MEASUREMENT_ID }} | |
FIREBASE_MESSAGING_SENDER_ID: ${{ secrets.FIREBASE_MESSAGING_SENDER_ID }} | |
VITE_PROJECT_ID: ${{ vars.PROJECT_ID }} | |
VITE_GTM_ID: ${{ vars.GTM_ID }} | |
run: pnpm build | |
- name: Upload pages | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: dist | |
deploy: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deploy.outputs.page_url }} | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- name: Deploy pages | |
id: deploy | |
uses: actions/deploy-pages@v4 |