Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8e594d9664 | ||
|
|
2ef028a671 | ||
|
|
e7121de87b | ||
|
|
1ebc7f9d8a | ||
|
|
3176c0452d | ||
|
|
2b3d4f2e8b |
@@ -0,0 +1,40 @@
|
|||||||
|
name: Manual npm publish
|
||||||
|
|
||||||
|
# Controls when the action will run. Workflow runs when manually triggered using the UI
|
||||||
|
# or API.
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
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
|
||||||
@@ -4,7 +4,9 @@ CLI utility written in TS, used to interact with laconicd. Depends on [laconic-s
|
|||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
* Run `yarn` to install all dependencies.
|
`npm config set registry https://git.vdb.to/api/packages/cerc-io/npm/`
|
||||||
|
|
||||||
|
* Run `yarn && yarn build` to install all dependencies.
|
||||||
|
|
||||||
* Create a `config.yml` file from [config.example.yml](./config.example.yml) file.
|
* Create a `config.yml` file from [config.example.yml](./config.example.yml) file.
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fs-extra": "^10.1.0",
|
"fs-extra": "^10.1.0",
|
||||||
"@cerc-io/laconic-sdk": "0.1.4",
|
"@cerc-io/laconic-sdk": "0.1.6",
|
||||||
"js-yaml": "^3.14.1",
|
"js-yaml": "^3.14.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"lodash-clean": "^2.2.3",
|
"lodash-clean": "^2.2.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user