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 289ffbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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
8 changes: 5 additions & 3 deletions .github/workflows/publish-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: [pull_request]
jobs:
publish:
name: Publish to Github Packages
needs: build
runs-on: ubuntu-20.04
env:
NPM_PACKAGE_NAME: twind
Expand Down Expand Up @@ -72,14 +73,15 @@ jobs:
</details>
<details><summary>Install from command line (click to expand)</summary>
<details><summary>Install/Update from command line (click to expand)</summary>
```sh
# For npm
npm install ${{ env.NPM_PACKAGE_NAME }}@npm:@${{ github.repository }}@pr${{ github.event.number }}
npm upgrade ${{ 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>
Expand Down

0 comments on commit 289ffbe

Please sign in to comment.