Skip to content

Bump actions/setup-node from 3.8.0 to 3.8.1 #82

Bump actions/setup-node from 3.8.0 to 3.8.1

Bump actions/setup-node from 3.8.0 to 3.8.1 #82

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@v3
- 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@v3
- 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@v3
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@v3
- name: Retrieve context files
uses: actions/download-artifact@v3
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