This commit is contained in:
Jaron Pate
2022-09-17 20:25:07 -05:00
commit 3fb707ad93
21 changed files with 1784 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
name: CI
on: [push]
jobs:
build:
name: Build, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['12.x', '14.x', '16.x']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Test
run: yarn test --ci --coverage --maxWorkers=2
- name: Build
run: yarn build
+17
View File
@@ -0,0 +1,17 @@
name: Publish
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn build
# - run: yarn test
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}