Browse Source

change: consolidate ci npm and upgrade node (#394)

dev
Oscar Arzola 2 years ago committed by GitHub
parent
commit
57189d80f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 25
      .github/workflows/build-and-lint.yml
  2. 1
      .nvmrc
  3. 2
      package-lock.json
  4. 2
      package.json

25
.github/workflows/build-and-lint.yml

@ -8,27 +8,4 @@ on:
branches: [ dev ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14', '16' ]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Cache Node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
- name: Install Node dependencies & build assets
run: |
node -v
npm install
npm run build
- name: Run ESLint and Stylelint
run: npm run lint
uses: pressbooks/composer-autoupdate-bedrock/.github/workflows/lint-build.yml@v1

1
.nvmrc

@ -0,0 +1 @@
v18

2
package-lock.json generated

@ -15,7 +15,7 @@
"pressbooks-build-tools": "^4.0.0"
},
"engines": {
"node": ">= 14"
"node": ">= 18"
}
},
"node_modules/@allmarkedup/fang": {

2
package.json

@ -71,7 +71,7 @@
"test": "npm run lint"
},
"engines": {
"node": ">= 14"
"node": ">= 18"
},
"devDependencies": {
"npm-run-all": "^4.1.5",

Loading…
Cancel
Save