diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..79b2bba --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish + +on: + push: + tags: + - 'v*' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.3.0 + + - uses: pnpm/action-setup@v2.2.4 + - uses: actions/setup-node@v3.6.0 + with: + node-version: 18 + cache: pnpm + + - run: pnpm install + - run: pnpm run build + - run: pnpm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}