diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c24f8f4..e7298f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,11 +29,14 @@ jobs: - name: Build run: yarn build - - name: Create Release Pull Request + - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1 with: + # This expects you to have a script called release which does a build for your packages and calls changeset publish + publish: yarn release commit: 'chore: release package(s)' title: 'chore: release package(s)' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}