Skip to content

Commit

Permalink
add github action for tests and npm-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Nov 26, 2022
1 parent 9047e29 commit 9a8019c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test
on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout 🍔🍟🥤
uses: actions/[email protected]
with:
persist-credentials: false

- name: Use Node.js 😂
uses: actions/setup-node@v3
with:
node-version: 16

- name: Test 🧪
run: |
npm ci
npm run check-ci
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9a8019c

Please sign in to comment.