From 0a97a2cc4831111758667fa3edc807d3a6eece30 Mon Sep 17 00:00:00 2001 From: Almsss Date: Wed, 8 Apr 2026 13:47:38 +0200 Subject: [PATCH 1/3] Add .gitea/workflows/publish --- .gitea/workflows/publish | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/publish diff --git a/.gitea/workflows/publish b/.gitea/workflows/publish new file mode 100644 index 0000000..cdb5a5c --- /dev/null +++ b/.gitea/workflows/publish @@ -0,0 +1,29 @@ +name: Publish to NPM + +on: + workflow_dispatch: + release: + types: [published] + +jobs: + build-and-publish: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "24" + + - name: Install dependencies + run: npm ci + + - name: Build TypeScript + run: npm run build + + - name: Publish to NPM + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file From e8c6b9c9200cc7762fb7b022513c76f462b04360 Mon Sep 17 00:00:00 2001 From: Almsss Date: Wed, 8 Apr 2026 13:47:51 +0200 Subject: [PATCH 2/3] Update .gitea/workflows/publish.yml --- .gitea/workflows/{publish => publish.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .gitea/workflows/{publish => publish.yml} (100%) diff --git a/.gitea/workflows/publish b/.gitea/workflows/publish.yml similarity index 100% rename from .gitea/workflows/publish rename to .gitea/workflows/publish.yml From e07114b1c019d1792bf84bffe0bf313cf0b25874 Mon Sep 17 00:00:00 2001 From: Almsss Date: Wed, 8 Apr 2026 13:50:17 +0200 Subject: [PATCH 3/3] Update .gitea/workflows/publish.yml --- .gitea/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index cdb5a5c..ca998d2 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -9,8 +9,8 @@ jobs: build-and-publish: runs-on: ubuntu-latest steps: - - name: Checkout repo - uses: actions/checkout@4 + - name: Checkout code + uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4