mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-08 12:28:05 +00:00
Npm gitea publish (#200)
* update gitignore for goland and first attempt at git.vdb.to npm publish * whitespace yaml nonsense * missing run entry * lerna is not cicd friendly, yet * try from-git arg in lerna.json * attempt default lerna publish with full checkout * explicit cli args... lerna.json ??? * explicit cli args... from-package is not --arg * make publish yaml match manual workflow
This commit is contained in:
parent
bad5ec754a
commit
5ffe13b723
9
.github/workflows/manual_npm_publishl.yml
vendored
9
.github/workflows/manual_npm_publishl.yml
vendored
@ -15,7 +15,10 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
node-version: [ 16.x ]
|
node-version: [ 16.x ]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
@ -35,7 +38,7 @@ jobs:
|
|||||||
- name: Authenticate to git.vdb.to registry
|
- name: Authenticate to git.vdb.to registry
|
||||||
run: |
|
run: |
|
||||||
npm config set -- '//git.vdb.to/api/packages/cerc-io/npm/:_authToken' "${{ secrets.GITEA_PUBLISH_TOKEN }}"
|
npm config set -- '//git.vdb.to/api/packages/cerc-io/npm/:_authToken' "${{ secrets.GITEA_PUBLISH_TOKEN }}"
|
||||||
- name: yarn publish
|
- name: lerna publish
|
||||||
run: |
|
run: |
|
||||||
yarn publish:workspace
|
lerna publish from-package --no-git-tag-version --yes
|
||||||
|
|
||||||
|
33
.github/workflows/publish.yaml
vendored
33
.github/workflows/publish.yaml
vendored
@ -20,3 +20,36 @@ jobs:
|
|||||||
run: docker tag ghcr.io/cerc-io/watcher-ts:${{steps.vars.outputs.sha}} ghcr.io/cerc-io/watcher-ts:${{steps.vars.outputs.tag}}
|
run: docker tag ghcr.io/cerc-io/watcher-ts:${{steps.vars.outputs.sha}} ghcr.io/cerc-io/watcher-ts:${{steps.vars.outputs.tag}}
|
||||||
- name: Docker Push to Github Hub
|
- name: Docker Push to Github Hub
|
||||||
run: docker push ghcr.io/cerc-io/watcher-ts:${{steps.vars.outputs.tag}}
|
run: docker push ghcr.io/cerc-io/watcher-ts:${{steps.vars.outputs.tag}}
|
||||||
|
|
||||||
|
npm_publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [ 16.x ]
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
registry-url: 'https://npm.pkg.github.com'
|
||||||
|
- run: yarn
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
||||||
|
- name: Run yarn build
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.PAT_PACKAGES }}
|
||||||
|
run: |
|
||||||
|
yarn build
|
||||||
|
- name: Configure git.vdb.to npm registry
|
||||||
|
run: |
|
||||||
|
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
|
||||||
|
- name: Authenticate to git.vdb.to registry
|
||||||
|
run: |
|
||||||
|
npm config set -- '//git.vdb.to/api/packages/cerc-io/npm/:_authToken' "${{ secrets.GITEA_PUBLISH_TOKEN }}"
|
||||||
|
- name: lerna publish
|
||||||
|
run: |
|
||||||
|
lerna publish from-package --no-git-tag-version --yes
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ dist/
|
|||||||
out/
|
out/
|
||||||
|
|
||||||
.vscode
|
.vscode
|
||||||
|
.idea
|
@ -7,7 +7,9 @@
|
|||||||
"useWorkspaces": true,
|
"useWorkspaces": true,
|
||||||
"command": {
|
"command": {
|
||||||
"publish": {
|
"publish": {
|
||||||
"registry": "https://git.vdb.to/api/packages/cerc-io/npm/"
|
"registry": "https://git.vdb.to/api/packages/cerc-io/npm/",
|
||||||
|
"yes": true,
|
||||||
|
"from-git": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user