diff --git a/.github/workflows/npm_deploy.yml b/.github/workflows/npm_deploy.yml new file mode 100644 index 0000000..c5f4756 --- /dev/null +++ b/.github/workflows/npm_deploy.yml @@ -0,0 +1,20 @@ +name: Deployment + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: 14.x + - run: npm ci + - run: npm run build --if-present + - run: npm run deploy