Skip to content

Bump cross-spawn from 7.0.3 to 7.0.6 #139

Bump cross-spawn from 7.0.3 to 7.0.6

Bump cross-spawn from 7.0.3 to 7.0.6 #139

Workflow file for this run

# https://docs.github.com/actions
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['lts/*']
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install
run: npm ci
- name: Lint
run: npm run lint
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['lts/*']
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install
run: npm ci
- name: Build fixtures
run: npm run build:fixtures
- name: Build action
run: npm run build:action
- name: Save files
uses: actions/upload-artifact@v4
with:
name: build-files
path: dist
publish:
name: Publish
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs:
- lint
- build
steps:
- uses: actions/checkout@v4
- name: Retrieve context files
uses: actions/download-artifact@v4
with:
name: build-files
path: dist
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
exclude_assets: '.github,bin,action.js,packag**.json,.gitignore'
publish_branch: dist
enable_jekyll: true