Skip to content

chore: pin GitHub Actions to commit SHAs #7

chore: pin GitHub Actions to commit SHAs

chore: pin GitHub Actions to commit SHAs #7

Workflow file for this run

name: ci
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: 20
cache: npm
- name: Install deps
run: npm ci
- name: Build
run: npm run build
- name: Upload Artifact
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: dist
path: ./dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: miso-landing-web
url: ${{ steps.deploy-step.outputs.deployment-url }}
outputs:
deployment-url: ${{ steps.deploy-step.outputs.deployment-url }}
steps:
- name: Download Artifact
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: dist
path: ./dist
- name: Deploy preview to Cloudflare Pages
id: deploy-step
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./dist --project-name=miso-landing-web --branch=${{ github.head_ref }}