Skip to content

Commit

Permalink
ci: add changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
ddadaal committed Jan 16, 2023
1 parent ea837e0 commit 4b96c8e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -39,3 +42,13 @@ jobs:
uses: codecov/codecov-action@v3
with:
files: ./packages/cli/coverage/test/lcov.info,./packages/server/coverage/test/lcov.info,./example/coverage/test/lcov.info

- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
if: github.ref == 'refs/heads/master'
with:
publish: pnpm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 4b96c8e

Please sign in to comment.