Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
chore: merge ci and publish together
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed May 14, 2021
1 parent 76a34a0 commit 82eef48
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 40 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,26 @@ jobs:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.test_number }}
parallel: true
publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 15
registry-url: https://npm.pkg.github.com/
scope: "@OWNER"
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn install --frozen-lockfile
- run: echo @OWNER:registry=https://npm.pkg.github.com/ >> .npmrc
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

finish:
needs: build
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit 82eef48

Please sign in to comment.