Skip to content

update main CTAs on docs site #8

update main CTAs on docs site

update main CTAs on docs site #8

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Test
run: npm test
- name: Build
run: npm run build
- name: Commit build artifacts
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add dist/stapler.js dist/stapler.min.js docs/stapler.min.js
git diff --staged --quiet || git commit -m "chore: rebuild dist [skip ci]"
git push