Skip to content

Commit

Permalink
build: move packages to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
kinnarr committed Dec 6, 2022
1 parent f4960b2 commit a553d72
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 24 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,12 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@metricq'
- run: yarn install
- run: yarn workspaces foreach npm publish --tolerate-republish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: '16.x'
# Defaults to the user or organization that owns the workflow file
scope: '@metricq'
- run: yarn workspaces foreach npm publish --tolerate-republish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# metricq-js

## Install via npm/yarn

Add the following line to your `.npmrc` in the project root:
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)

```
@metricq:registry=https://npm.pkg.github.com
```
## Install via npm/yarn

After that install via
Install via

```bash
npm install @metricq/live
Expand All @@ -22,6 +18,9 @@ or
yarn add @metricq/history
```

**If you have previously installed the packages from the GitHub package registry, please delete the registry
configuration for the metricq scope.**

## Usage

```js
Expand Down
22 changes: 22 additions & 0 deletions packages/history/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# @metricq/history

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.

## Install via npm/yarn

Install via

```bash
npm install @metricq/history
or
yarn add @metricq/history
```

**If you have previously installed the packages from the GitHub package registry, please delete the registry
configuration for the metricq scope.**

## Usage

```js
import MetricQHistory from "@metricq/history"
```
3 changes: 0 additions & 3 deletions packages/history/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,5 @@
},
"browser": {
"child_process": false
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}
22 changes: 22 additions & 0 deletions packages/live/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# @metricq/live

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.

## Install via npm/yarn

Install via

```bash
npm install @metricq/live
or
yarn add @metricq/live
```

**If you have previously installed the packages from the GitHub package registry, please delete the registry
configuration for the metricq scope.**

## Usage

```js
import MetricQLive from "@metricq/live"
```
5 changes: 1 addition & 4 deletions packages/live/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metricq/live",
"version": "3.0.0",
"version": "3.0.1",
"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.",
"repository": {
"type": "git",
Expand All @@ -19,8 +19,5 @@
},
"browser": {
"child_process": false
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}

0 comments on commit a553d72

Please sign in to comment.