From 9a8019c1d85b5f6c4705db7dd5ef9563217f1522 Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sat, 26 Nov 2022 09:51:21 -0800 Subject: [PATCH] add github action for tests and npm-publish --- .github/workflows/test.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..29e013e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,29 @@ +name: Test +on: + push: + branches: + - main + pull_request: +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout ๐Ÿ”๐ŸŸ๐Ÿฅค + uses: actions/checkout@v2.5.0 + 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 }}