mirror of
https://github.com/ivuorinen/everforest-resources.git
synced 2026-02-04 08:44:43 +00:00
chore(ci): update workflows, use .nvmrc
This commit is contained in:
46
.github/workflows/build.yml
vendored
46
.github/workflows/build.yml
vendored
@@ -2,39 +2,39 @@ name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
|
||||
with:
|
||||
node-version-file: ".nvmrc"
|
||||
cache: "npm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Lint code
|
||||
run: npm run lint
|
||||
- name: Lint code
|
||||
run: npm run lint
|
||||
|
||||
- name: Generate themes
|
||||
run: npm run generate
|
||||
- name: Generate themes
|
||||
run: npm run generate
|
||||
|
||||
- name: Validate output
|
||||
run: npm run validate
|
||||
- name: Validate output
|
||||
run: npm run validate
|
||||
|
||||
- name: Check for uncommitted changes
|
||||
run: |
|
||||
if ! git diff --quiet; then
|
||||
echo "Generated files have uncommitted changes!"
|
||||
git diff
|
||||
exit 1
|
||||
fi
|
||||
- name: Check for uncommitted changes
|
||||
run: |
|
||||
if ! git diff --quiet; then
|
||||
echo "Generated files have uncommitted changes!"
|
||||
git diff
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user