Skip to content

Commit c0e2b50

Browse files
committed
Try to publish to registries via lerna
1 parent 8bf09a9 commit c0e2b50

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

.github/workflows/github-npm-publish.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ jobs:
3131
registry-url: https://npm.pkg.github.com/
3232
- run: npm ci
3333
- run: npx lerna run build
34-
- run: npm publish
35-
working-directory: packages/stencil-library
36-
env:
37-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
38-
- run: npm publish
39-
working-directory: packages/react-library
34+
- run: npx lerna publish from-package
4035
env:
4136
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/real-npm-publish.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ jobs:
1515
registry-url: https://registry.npmjs.org/
1616
- run: npm clean-install
1717
- run: npx lerna run build
18-
- run: npm publish --access public
19-
working-directory: packages/stencil-library
18+
- run: npx lerna publish from-package
2019
env:
21-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
22-
- run: npm publish --access public
23-
working-directory: packages/react-library
24-
env:
25-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
20+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ The `pid-component` is an easily extensible web component that can be used to di
66
identifiers in a user-friendly way.
77
It is easily extensible to support other identifier types.
88

9+
> A [React wrapper]() is also available
10+
911
The `pid-component` dynamically renders a component based on the value of the `value` property.
1012
Depending on the value, it decides which component to render, what priority to give it, and what props to pass to it.
1113
It also renders itself recursively for all its children when unfolded.

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "0.1.4"
3+
"version": "independent"
44
}

packages/react-library/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
React wrapper for [@kit-data-manager/pid-component](https://github.com/kit-data-manager/pid-component)
44

5+
## Installation
6+
7+
npm install @kit-data-manager/react-pid-component
8+
59
## Usage
610

711
Refer to the documentation of [@kit-data-manager/pid-component](https://github.com/kit-data-manager/pid-component).

0 commit comments

Comments
 (0)