name: Build and Publish on: push: tags: - "v[0-9]+.*" jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: 16 - run: npm install - run: npm test - uses: JS-DevTools/npm-publish@v1 with: token: ${{ secrets.GITHUB_TOKEN }}