update github actions

This commit is contained in:
JasterV 2026-03-01 18:15:43 +01:00
parent 985706b05d
commit cb6f02d635
3 changed files with 18 additions and 17 deletions

View file

@ -6,7 +6,7 @@ updates:
interval: "weekly" interval: "weekly"
allow: allow:
- dependency-type: direct - dependency-type: direct
- package-ecosystem: "github-actions" - package-ecosystem: "github-actions"
directory: "/" directory: "/"
schedule: schedule:

View file

@ -5,27 +5,27 @@ name: CI
on: on:
push: push:
branches: [ "main" ] branches: ["main"]
pull_request: pull_request:
branches: [ "main" ] branches: ["main"]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [18.x, 20.x, 21.x] node-version: [18.x, 20.x, 21.x, 25.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'npm' cache: "npm"
- run: npm ci - run: npm install
- run: npm run build --if-present - run: npm ci
- run: npm test - run: npm run build --if-present
- run: npm test

View file

@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 21 node-version: 25
- run: npm ci - run: npm ci
- run: npm test - run: npm test
@ -22,11 +22,12 @@ jobs:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: 21 node-version: 25
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm ci - run: npm ci
- run: npm publish - run: npm publish
env: env: