From cc0abab97d6478b1279da80ed1eec0c3eeaf71ac Mon Sep 17 00:00:00 2001 From: anonpenguin Date: Mon, 7 Apr 2025 16:06:40 +0300 Subject: [PATCH] added github workflows --- .github/workflows/publish.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/publish.yml 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 }}