@@ -25,6 +25,35 @@ npm install @vue-web-component-library/input
25
25
npm install @vue-web-component-library/icon
26
26
```
27
27
28
+ ### Installing from GitHub Packages
29
+
30
+ The packages are also available on GitHub Packages. To use them:
31
+
32
+ 1 . Create or modify your ` .npmrc ` file in your project root:
33
+
34
+ ```
35
+ @vue-web-component-library:registry=https://npm.pkg.github.com
36
+ //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
37
+ ```
38
+
39
+ 2 . Set your GitHub token as an environment variable:
40
+
41
+ ``` bash
42
+ export GITHUB_TOKEN=your_github_token
43
+ ```
44
+
45
+ 3 . Install the packages:
46
+
47
+ ``` bash
48
+ # Install the entire library
49
+ npm install @vue-web-component-library/components
50
+
51
+ # Or install individual components
52
+ npm install @vue-web-component-library/button
53
+ npm install @vue-web-component-library/input
54
+ npm install @vue-web-component-library/icon
55
+ ```
56
+
28
57
## Usage
29
58
30
59
### Importing Components
@@ -132,6 +161,21 @@ A component for displaying Google Material Icons.
132
161
133
162
Contributions are welcome! Please feel free to submit a Pull Request.
134
163
135
- ## License
164
+ ## Publishing
165
+
166
+ This library is published to GitHub Packages using a GitHub Actions workflow. To publish a new version:
167
+
168
+ 1 . Create a new release on GitHub or
169
+ 2 . Manually trigger the "Publish Packages" workflow from the Actions tab, selecting the version increment (patch, minor, major)
170
+
171
+ ### GitHub Actions Workflow
136
172
173
+ The publishing workflow:
174
+
175
+ 1 . Builds all packages
176
+ 2 . Runs tests
177
+ 3 . Increments versions (when manually triggered)
178
+ 4 . Publishes packages to GitHub Packages
179
+
180
+ ## License
137
181
MIT
0 commit comments