feat: publish to git repo
Some checks failed
CI Pipeline / check-version (push) Successful in 17s
CI Pipeline / publish-staging (push) Has been skipped
CI Pipeline / publish-production (push) Has been skipped
CI Pipeline / build-and-test (push) Successful in 1m16s
CI Pipeline / publish-git (push) Failing after 1m58s
CI Pipeline / finish (push) Has been skipped
Some checks failed
CI Pipeline / check-version (push) Successful in 17s
CI Pipeline / publish-staging (push) Has been skipped
CI Pipeline / publish-production (push) Has been skipped
CI Pipeline / build-and-test (push) Successful in 1m16s
CI Pipeline / publish-git (push) Failing after 1m58s
CI Pipeline / finish (push) Has been skipped
This commit is contained in:
parent
0ff5d9a198
commit
c9e439fc66
2 changed files with 20 additions and 1 deletions
|
@ -115,10 +115,29 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
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:
|
finish:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
needs: [publish-staging, publish-production, publish-git]
|
||||||
container:
|
container:
|
||||||
image: node:20-alpine
|
image: node:20-alpine
|
||||||
steps:
|
steps:
|
||||||
- name: Finish task
|
- name: Finish task
|
||||||
run: echo Done
|
run: echo Done
|
||||||
|
- name: Publish to Git
|
||||||
|
run: npm publish
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+ssh://git@bitbucket.org/leandro_costa/lhmask.git"
|
"url": "https://git.lhprovedor.com.br/leandro/lhmask.git"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue