Bump actions/setup-node from 4.0.3 to 4.0.4 #131
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |