diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d33624..1a4890b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,5 +25,11 @@ jobs: - name: Install dependencies run: npm install - - name: Run CI - run: npm run ci + - name: release + id: changesets + uses: changesets/action@v1 + with: + publish: npm run release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 09ca4bf..3e6d72d 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,8 @@ "link-cli": "(npm unlink commonflow || true) && npm link", "build": "tsup", "check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm", - "local-release": "changeset version && changeset publish", + "changeset": "changeset", + "release": "changeset version && changeset publish", "prepublishOnly": "npm run ci", "ci": "npm run lint && npm run test && npm run check-format && npm run build && npm run check-exports" },