diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..48a9655 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,23 @@ +name: "publish" + +on: + push: + branches: + - main + +jobs: + release: + name: publish + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: node + uses: actions/setup-node@v4 + with: + node-version: ">=14.0.0" + registry-url: https://registry.npmjs.org + - name: publish + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_STAR_TOKEN}}