diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d149ed2 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,32 @@ +name: Publish Alpha Package to npm + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "23" + registry-url: "https://registry.npmjs.org/" + + - name: Set up PNPM + uses: pnpm/action-setup@v2 + with: + version: latest + + - name: Install dependencies + run: pnpm install + + - name: Publish to npm as latest + run: npm publish --tag latest --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}