Skip to content

Npm update

Npm update #313

Workflow file for this run

name: Deploy to Cloudflare Pages
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
name: deploy
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "latest"
- name: Install dependencies
run: npm install
- name: Build
id: build
run: npm run build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
if: steps.build.outcome == 'success'
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID}}
projectName: html
directory: dist
delete-workflow-runs:
runs-on: ubuntu-latest
steps:
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 30
keep_minimum_runs: 1