diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fe9f0b24..415f8752 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,5 +25,8 @@ jobs: - name: Create Release Pull Request uses: changesets/action@master + with: + publish: 'yarn release' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 01bc2b8e..a23b54e3 100644 --- a/package.json +++ b/package.json @@ -21,10 +21,10 @@ "postinstall": "preconstruct dev", "build-storybook": "build-storybook", "chromatic": "chromatic --exit-zero-on-changes", - "publish:npm": "yarn build && yarn changeset publish", "docs:dev": "yarn workspace docs dev", "docs:build": "yarn workspace docs build", - "docs:serve": "yarn workspace docs start" + "docs:serve": "yarn workspace docs start", + "release": "yarn build && changeset publish" }, "dependencies": { "@babel/core": "^7.16.0",