Skip to content

Commit

Permalink
CI update
Browse files Browse the repository at this point in the history
  • Loading branch information
JrMasterModelBuilder committed Jul 12, 2022
1 parent fbcee90 commit be29ac2
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 33 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: main

on: push

jobs:
build:
strategy:
matrix:
config:
- node-version: '10.13.0' # LTS
NO_FORMATTED: 1
NO_LINT: 1
NO_ESM: 1

- node-version: '12.13.0' # LTS
NO_FORMATTED: 1
NO_LINT: 1
NO_ESM: 1

- node-version: '14.15.0' # LTS
NO_FORMATTED: 1
NO_LINT: 1

- node-version: '16.13.0' # LTS
NO_FORMATTED: 1
NO_LINT: 1

- node-version: '16.16.0' # LTS (current)

- node-version: '18.5.0'

runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.config.node-version }}

- name: Dependencies
run: npm ci

- name: Build
run: npm run build

- name: Test
run: npm run test

- name: Lint
run: npm run lint
if: matrix.config.NO_LINT != 1

publish:
if: startsWith(github.ref, 'refs/tags/')
needs: build

runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Node
uses: actions/setup-node@v3
with:
node-version: '16.16.0'
registry-url: https://registry.npmjs.org/

- name: Dependencies
run: npm ci

- name: Publish
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
32 changes: 0 additions & 32 deletions .github/workflows/main.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.17.3
16.16.0

0 comments on commit be29ac2

Please sign in to comment.