From 1f6b18ef9e5731d82b6100e5246e8aaa277c441d Mon Sep 17 00:00:00 2001 From: pvgoma Date: Wed, 13 Aug 2025 15:06:16 +0200 Subject: [PATCH] workflows file added --- .gitea/workflows/publish.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..b6d5d86 --- /dev/null +++ b/.gitea/workflows/publish.yml @@ -0,0 +1,27 @@ +name: Publish visua Package + +on: + push: + tags: + - '*' + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + + - name: Configure .npmrc for Gitea registry + run: | + echo "@cellule-financiere-pmo:registry=https://dgfipntic.imfr.cgi.com/api/packages/Cellule-financiere-transverse-PMO/npm/" > ~/.npmrc + echo "//dgfipntic.imfr.cgi.com/api/packages/Cellule-financiere-transverse-PMO/npm/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc + + - name: Publish to Gitea NPM registry + run: npm publish