Skip to content

chore: bump node to v18 #418

chore: bump node to v18

chore: bump node to v18 #418

Workflow file for this run

name: ci
on:
push:
branches:
- main
env:
NODE_VERSION: '18.12.0'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ env.NODE_VERSION }}
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm ci
- name: Prettier
run: npm run prettier:check
- name: Build
run: npm run build
- name: Test
run: npm run test:ci
- name: Prepare release
uses: google-github-actions/release-please-action@v4
with:
release-type: node
package-name: '@smarlhens/npm-check-engines'
changelog-path: CHANGELOG.md
command: |
${{ startsWith(github.event.head_commit.message, 'chore(main): release') && 'github-release' || 'release-pr' }}
token: ${{ secrets.PAT }}
changelog-types: '[{"type":"build","section":"Miscellaneous","hidden":false},{"type":"chore","section":"Chores","hidden":false},{"type":"ci","section":"Miscellaneous","hidden":false},{"type":"docs","section":"Documentation","hidden":false},{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"refactor","section":"Miscellaneous","hidden":false},{"type":"style","section":"Miscellaneous","hidden":false},{"type":"test","section":"Miscellaneous","hidden":false}]'