From c9e439fc666c4329923fd0717cacb1bb79812ff8 Mon Sep 17 00:00:00 2001 From: Leandro Costa Date: Fri, 30 May 2025 08:22:45 -0300 Subject: [PATCH] feat: publish to git repo --- .forgejo/workflows/build.yml | 19 +++++++++++++++++++ package.json | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 8c351e5..8d89b8d 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -115,10 +115,29 @@ jobs: env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + publish-git: + runs-on: docker + container: + image: ubuntu:latest + needs: [build-and-test] + steps: + - uses: actions/setup-node@v4 + with: + node-version: "20.x" + registry-url: "https://git.lhprovedor.com.br/leandro/lhmask/packages/npm/" + - name: Download lhmask + uses: actions/download-artifact@v3 + with: + path: lhmask + name: lhmask + finish: runs-on: docker + needs: [publish-staging, publish-production, publish-git] container: image: node:20-alpine steps: - name: Finish task run: echo Done + - name: Publish to Git + run: npm publish diff --git a/package.json b/package.json index 7a1dd7b..1ea122a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ }, "repository": { "type": "git", - "url": "git+ssh://git@bitbucket.org/leandro_costa/lhmask.git" + "url": "https://git.lhprovedor.com.br/leandro/lhmask.git" }, "keywords": [], "author": "",