From d87fef27462b197081ae8c8c8f9444922f3c5326 Mon Sep 17 00:00:00 2001 From: Mark Skelton Date: Fri, 4 Mar 2022 10:49:28 -0600 Subject: [PATCH] Fix release --- .github/workflows/build.yml | 4 ++-- package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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"