diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..2e27760 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,18 @@ +version: '2.1' +orbs: + node: circleci/node@5.0.2 +jobs: + build-test: + docker: + - image: 'cimg/base:stable' + steps: + - checkout + - node/install: + install-yarn: true + node-version: '16.13' + - run: node --version +workflows: + just-build-it: + jobs: + - node/run: + npm-run: build \ No newline at end of file diff --git a/.github/workflows/npm_publish.yml b/.github/workflows/npm_publish.yml new file mode 100644 index 0000000..eaa4381 --- /dev/null +++ b/.github/workflows/npm_publish.yml @@ -0,0 +1,18 @@ +name: NPM Publish + +# Controls when the workflow will run +on: push + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 14 + - run: npm install + - run: npm run build + - uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_PUBLISH }} \ No newline at end of file