Skip to content

Disable removeViewbox plugin #1554

Disable removeViewbox plugin

Disable removeViewbox plugin #1554

Workflow file for this run

name: CI
on:
push:
branches:
- main
- live
- "!dependabot/**"
pull_request:
workflow_dispatch:
env:
FORCE_COLOR: 2
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Lint
run: npm run lint
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: npm
- name: Install npm dependencies
run: npm ci
- name: Build
run: npm run build
- name: Upload build files
uses: actions/upload-artifact@v4
if: github.repository == 'jakearchibald/svgomg' && github.ref == 'refs/heads/live'
with:
name: build
path: ./build/
if-no-files-found: error
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [lint, build]
if: github.repository == 'jakearchibald/svgomg' && github.ref == 'refs/heads/live'
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Download build files
uses: actions/download-artifact@v4
with:
name: build
path: ./build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
allow_empty_commit: false
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./build