From d45b26fe09e7f5c84e9750bc3af78864331e018c Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sun, 14 Apr 2024 16:15:47 -0400 Subject: [PATCH] Add deploy-lib workflow --- .gitea/workflows/deploy-lib.yml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/deploy-lib.yml diff --git a/.gitea/workflows/deploy-lib.yml b/.gitea/workflows/deploy-lib.yml new file mode 100644 index 0000000..1732a4a --- /dev/null +++ b/.gitea/workflows/deploy-lib.yml @@ -0,0 +1,35 @@ +name: Deploy Lib + +on: + push: + branches: ["master"] + paths: ["Lib/**"] + +jobs: + docker: + strategy: + matrix: + arch: ["ubuntu-latest"] + git-version: ["2.44.0"] + node-version: ["20.x"] + runs-on: ${{ matrix.arch }} + defaults: + run: + working-directory: ./Lib + + # Steps to run + steps: + # Checkout the repo + - name: Checkout + uses: actions/checkout@v4 + + # Setup NodeJS + - name: Setup NodeJS + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + + - name: Publish to NPM + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}