mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-22 02:59:06 +00:00
update gitignore for goland and first attempt at git.vdb.to npm publish
This commit is contained in:
parent
0ef458734e
commit
21548b309a
30
.github/workflows/publish.yaml
vendored
30
.github/workflows/publish.yaml
vendored
@ -20,3 +20,33 @@ 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:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- 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
|
||||||
|
npm config set -- '//git.vdb.to/api/packages/cerc-io/npm/:_authToken' "${{ secrets.GITEA_PUBLISH_TOKEN }}"
|
||||||
|
- name: Run yarn publish
|
||||||
|
run: |
|
||||||
|
yarn publish:workspace
|
||||||
|
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ dist/
|
|||||||
out/
|
out/
|
||||||
|
|
||||||
.vscode
|
.vscode
|
||||||
|
.idea
|
Loading…
Reference in New Issue
Block a user