Skip to content

chore(ci): test node@20 #43

chore(ci): test node@20

chore(ci): test node@20 #43

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- '!*'
pull_request:
workflow_dispatch:
env:
FORCE_COLOR: 2
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test:
name: Node.js ${{ matrix.node }} on ${{ matrix.os }}
timeout-minutes: 7
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: [18, 20]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- run: corepack enable pnpm
- run: pnpm install
- run: pnpm build
- run: pnpm lint:prettier
- run: pnpm lint:eslint
- run: pnpm test
- name: Maybe Release
if: matrix.os == 'ubuntu-latest' && matrix.node == 18 && github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm dlx semantic-release@19.0.5