Skip to content

Commit

Permalink
chore(package): publish to NPM for public access
Browse files Browse the repository at this point in the history
  • Loading branch information
eudaimos committed Apr 19, 2021
1 parent c825303 commit 93d219f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
# scope: '@rollbar'
- run: npm install
- run: npm run build
- run: npm publish
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@ After following those 2 steps, you will be ready.

### Install Rollbar React SDK

We are hosting our `@rollbar` scoped packages in Github Packages. In order to use this you will need to follow the
instructions for [Installing a Package from Github Packages][1]

In the same directory as your `package.json` file, add a `.npmrc` file with the following:

```
@rollbar:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken="PUBLIC_ACCESS_TOKEN"
```

To install with `npm`:

```shell
Expand All @@ -61,13 +51,13 @@ To install with `yarn`:
yarn add @rollbar/react
```

To install by adding to `package.json` (as suggested by [Github Packages docs][1]), add the following to your project's
To install by adding to `package.json`, add the following to your project's
`package.json` file:

```json
"dependencies": {
"@rollbar/react": "^0.7.0",
"@rollbar/react": "^0.8.0",
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rollbar/react",
"version": "0.7.2",
"version": "0.8.0",
"description": "React features to enhance using Rollbar.js in React Applications",
"main": "lib",
"module": "dist",
Expand Down

0 comments on commit 93d219f

Please sign in to comment.