Skip to content

Commit a553d72

Browse files
committed
build: move packages to npm
1 parent f4960b2 commit a553d72

File tree

6 files changed

+51
-24
lines changed

6 files changed

+51
-24
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,12 @@ jobs:
1010
packages: write
1111
steps:
1212
- uses: actions/checkout@v2
13-
# Setup .npmrc file to publish to GitHub Packages
1413
- uses: actions/setup-node@v3
1514
with:
1615
node-version: '16.x'
17-
registry-url: 'https://npm.pkg.github.com'
1816
# Defaults to the user or organization that owns the workflow file
1917
scope: '@metricq'
2018
- run: yarn install
21-
- run: yarn workspaces foreach npm publish --tolerate-republish --access public
22-
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
- uses: actions/setup-node@v3
25-
with:
26-
node-version: '16.x'
27-
# Defaults to the user or organization that owns the workflow file
28-
scope: '@metricq'
2919
- run: yarn workspaces foreach npm publish --tolerate-republish --access public
3020
env:
3121
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
# metricq-js
22

3-
## Install via npm/yarn
4-
5-
Add the following line to your `.npmrc` in the project root:
3+
For the readme of the single package, visit the corresponding folders or click here for [live](packages/live/README.md) and [history](packages/history/README.md)
64

7-
```
8-
@metricq:registry=https://npm.pkg.github.com
9-
```
5+
## Install via npm/yarn
106

11-
After that install via
7+
Install via
128

139
```bash
1410
npm install @metricq/live
@@ -22,6 +18,9 @@ or
2218
yarn add @metricq/history
2319
```
2420

21+
**If you have previously installed the packages from the GitHub package registry, please delete the registry
22+
configuration for the metricq scope.**
23+
2524
## Usage
2625

2726
```js

packages/history/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# @metricq/history
2+
3+
MetricQ is a highly-scalable, distributed metric data processing framework based on RabbitMQ. This package provides a client library for the [metricq-grafana](https://github.com/metricq/metricq-grafana) endpoint.
4+
5+
## Install via npm/yarn
6+
7+
Install via
8+
9+
```bash
10+
npm install @metricq/history
11+
or
12+
yarn add @metricq/history
13+
```
14+
15+
**If you have previously installed the packages from the GitHub package registry, please delete the registry
16+
configuration for the metricq scope.**
17+
18+
## Usage
19+
20+
```js
21+
import MetricQHistory from "@metricq/history"
22+
```

packages/history/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,5 @@
1919
},
2020
"browser": {
2121
"child_process": false
22-
},
23-
"publishConfig": {
24-
"registry": "https://npm.pkg.github.com"
2522
}
2623
}

packages/live/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# @metricq/live
2+
3+
MetricQ is a highly-scalable, distributed metric data processing framework based on RabbitMQ. This package provides a client library for the [metricq-sink-websocket](https://github.com/metricq/metricq-sink-websocket) endpoint.
4+
5+
## Install via npm/yarn
6+
7+
Install via
8+
9+
```bash
10+
npm install @metricq/live
11+
or
12+
yarn add @metricq/live
13+
```
14+
15+
**If you have previously installed the packages from the GitHub package registry, please delete the registry
16+
configuration for the metricq scope.**
17+
18+
## Usage
19+
20+
```js
21+
import MetricQLive from "@metricq/live"
22+
```

packages/live/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metricq/live",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "MetricQ is a highly-scalable, distributed metric data processing framework based on RabbitMQ. This package provides a client library for the metricq-sink-websocket endpoint.",
55
"repository": {
66
"type": "git",
@@ -19,8 +19,5 @@
1919
},
2020
"browser": {
2121
"child_process": false
22-
},
23-
"publishConfig": {
24-
"registry": "https://npm.pkg.github.com"
2522
}
2623
}

0 commit comments

Comments
 (0)