From 7a5e7fd8ea60b0324d199dff43f24b9a3e2ed00c Mon Sep 17 00:00:00 2001 From: Mark Skelton Date: Fri, 4 Mar 2022 10:48:39 -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 f3cd5d9..d4979d9 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 publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 8b96d7c..79e3244 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ ], "scripts": { "lint": "eslint .", - "test": "jest" + "test": "jest", + "publish": "yarn tsc && yarn changeset publish" }, "peerDependencies": { "i18next": ">=20"