diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 813ed36e..eb436098 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,14 +32,16 @@ jobs: cat ./packages/composable-cli/.env - name: Install Dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1 with: - # This expects you to have a script called release which does a build for your packages and calls changeset publish - publish: pnpm release + version: pnpm ci:version + publish: pnpm ci:publish + commit: "chore: update versions" + title: "chore: update versions" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index cc68a872..7a6cecb1 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,8 @@ "test:e2e": "NODE_ENV=test pnpm start:e2e & (sleep 5 && turbo run test:e2e --filter='./examples/basic' && kill $(lsof -t -i tcp:3000))", "build:cli": "turbo run build --filter=composable-cli...", "build:packages": "turbo run build --filter='./packages/*'", + "ci:version": "changeset version && pnpm install --no-frozen-lockfile", + "ci:publish": "pnpm publish -r && changeset tag", "examples": "turbo run build --filter=composable-cli... && pnpm run scaffold:local", "scaffold:local": "pnpm ts-node ./scripts/generate-examples.ts" },