Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
1f6b18ef9e | ||
|
e1bbe2470e |
27
.gitea/workflows/publish.yml
Normal file
27
.gitea/workflows/publish.yml
Normal file
|
@ -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
|
|
@ -1,14 +0,0 @@
|
||||||
default:
|
|
||||||
image: node:latest
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
publish-npm:
|
|
||||||
stage: deploy
|
|
||||||
script:
|
|
||||||
- echo "@cellule-financiere-pmo:registry=https://${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/" > .npmrc
|
|
||||||
- echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc
|
|
||||||
- npm publish
|
|
||||||
only:
|
|
||||||
- tags
|
|
Loading…
Reference in New Issue
Block a user