Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

feat!(node): drop support for Node version < 18 #27

feat!(node): drop support for Node version < 18

feat!(node): drop support for Node version < 18 #27

Workflow file for this run

name: Publish NPM Package
on:
push:
branches: [master]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
check-latest: true
- name: Dependency cruiser check
run: yarn test:deps
- name: Prettier check
run: yarn test:prettier
- name: ESLint check
run: yarn test:eslint
- name: Skypack check
run: yarn test:skypack
test:
runs-on: ubuntu-latest
strategy:
matrix:
node: [18, 20, 21]
steps:
- uses: actions/[email protected]
- name: Set up Node.js ${{matrix.node}}
uses: actions/[email protected]
with:
node-version: ${{matrix.node}}
- name: Unit tests
run: yarn test
publish-npm:
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
check-latest: true
- name: Build commonjs, es6, esnext and amd
run: |
yarn build:cjs
yarn build:es
yarn build:types
- name: Publish to npm
run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}