Skip to content

Commit

Permalink
chore: publish pr
Browse files Browse the repository at this point in the history
  • Loading branch information
sastan committed Jan 1, 2021
1 parent 690a227 commit 9c035f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on: [push]
jobs:
build:
name: Node ${{ matrix.node }} on ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down
24 changes: 5 additions & 19 deletions .github/workflows/publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
This PR has been published to [npm.pkg.github.com](https://github.com/orgs/${{ github.repository_owner }}/packages?repo_name=${{ env.NPM_PACKAGE_NAME }}) as `@${{ github.repository }}@pr${{ github.event.number }}`.
**Install/Update**
<details><summary>Configure your NPM client (click to expand)</summary>
Adjust you `.npmrc` to use `https://npm.pkg.github.com` for `@${{ github.repository_owner }}`
Expand All @@ -72,26 +74,10 @@ jobs:
</details>
<details><summary>Install from command line (click to expand)</summary>
```sh
# For npm
npm install ${{ env.NPM_PACKAGE_NAME }}@npm:@${{ github.repository }}@pr${{ github.event.number }}
npm install --force ${{ env.NPM_PACKAGE_NAME }}@npm:@${{ github.repository }}@pr${{ github.event.number }}
# For yarn
yarn add ${{ env.NPM_PACKAGE_NAME }}@npm:@${{ github.repository }}@pr${{ github.event.number }}
# For yarn - upgrade implies install
yarn upgrade ${{ env.NPM_PACKAGE_NAME }}@npm:@${{ github.repository }}@pr${{ github.event.number }}
```
</details>
<details><summary>Install via package.json (click to expand)</summary>
```json
{
"dependencies": {
"${{ env.NPM_PACKAGE_NAME }}": "npm:@${{ github.repository }}@pr${{ github.event.number }}"
}
}
```
</details>

0 comments on commit 9c035f1

Please sign in to comment.