Skip to content

Bump GitHub action dependencies (#5) #16

Bump GitHub action dependencies (#5)

Bump GitHub action dependencies (#5) #16

Workflow file for this run

name: Publish
on:
push:
branches:
- main
- master
jobs:
ci:
name: Publish
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Lint YAMLs
run: npx featurevisor lint
- name: Test specs
run: npx featurevisor test
- name: Build
run: npx featurevisor build
- name: Git configs
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Upload to Cloudflare Pages
run: |
echo "<html><body>It works.</body></html>" > dist/index.html
npx wrangler pages deploy dist --project-name="featurevisor-example-cloudflare"
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- name: Push back to origin
run: |
git add .featurevisor/*
git commit -m "[skip ci] Revision $(cat .featurevisor/REVISION)"
git push