Skip to content

chore(deps): update node.js to v22 #4364

chore(deps): update node.js to v22

chore(deps): update node.js to v22 #4364

Workflow file for this run

name: Test, Build and Release
on:
push:
branches:
- KillYourMaster
pull_request:
jobs:
dependencies:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'npm'
- name: Cache Node dependencies
uses: actions/cache@v4
id: npm-cache
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci
test:
runs-on: ubuntu-latest
needs: dependencies
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'npm'
- name: Cache Node dependencies
uses: actions/cache@v4
id: npm-cache
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Run tests
run: |
npm run lint
npm run test
build:
runs-on: ubuntu-latest
needs: dependencies
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'npm'
- name: Cache Node dependencies
uses: actions/cache@v4
id: npm-cache
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Build application
env:
NODE_OPTIONS: --openssl-legacy-provider
run: npm run build
release:
runs-on: ubuntu-latest
needs: [test, build, dependencies]
if: github.ref == 'refs/heads/KillYourMaster' && !contains(github.event.head_commit.message, '[skip release]')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 50
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'npm'
- name: Cache Node dependencies
uses: actions/cache@v4
id: npm-cache
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Create release
run: |
git config user.email "[email protected]"
git config user.name "Emanuel Kluge"
npx lerna version --yes
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}