From 9b0d1e349710fdbd801634a2b1a4f31f5e906c0a Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 14 Apr 2024 22:34:47 +0100 Subject: [PATCH] publish workflow --- .gitea/workflows/publish.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitea/workflows/publish.yml diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml new file mode 100644 index 0000000..516bd70 --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -0,0 +1,17 @@ +name: Publish Package +on: + push: + branches: [master] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}