diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..bf928eb --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,25 @@ +name: automatic deploy +on: + push: + tags: + - v* +jobs: + release: + name: deploy + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v1 + - name: setup Node + uses: actions/setup-node@v1 + with: + node-version: '14.x' + registry-url: 'https://registry.npmjs.org' + - name: ci + run: npm ci + - name: build + run: npm run build + - name: deploy + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}