Skip to content

Commit

Permalink
Merge pull request #20 from danestves/feat/vite
Browse files Browse the repository at this point in the history
v2.0.0
  • Loading branch information
danestves authored Mar 12, 2022
2 parents f2dfd53 + e7aaf18 commit 18fd9e7
Show file tree
Hide file tree
Showing 11 changed files with 3,798 additions and 6,715 deletions.
30 changes: 10 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
name: CI

on: [push]

jobs:
build:
name: Build, lint, 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]

name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

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

- name: Install deps and build (with cache)
- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Lint
run: yarn lint

- name: Test
run: yarn test --ci --coverage --maxWorkers=2

- name: Build
run: yarn build
run: npm run build
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

Loading

0 comments on commit 18fd9e7

Please sign in to comment.