diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02e77f1..55cc6b3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,9 +31,9 @@ jobs: cache: yarn - run: yarn install --immutable - name: Create release pull request or publish to npm - uses: changesets/action@master + uses: changesets/action@v1 with: - publish: yarn tsc && yarn changeset publish + publish: yarn release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index d49b8a8..f77e3fb 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "scripts": { "lint": "eslint .", "test": "jest", - "format": "prettier --write ." + "format": "prettier --write .", + "release": "yarn tsc && yarn changeset publish" }, "peerDependencies": { "i18next": ">=20"