Skip to content

Switch to npm

Switch to npm #3

Workflow file for this run

name: Publish
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
publish:
runs-on: ubuntu-latest
name: Upload to pages
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: '19'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: gmsstatus
directory: dist/