diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index ff260d3..70c4f32 100755 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -31,13 +31,11 @@ jobs: run: echo "$PNPM_HOME" >> $GITHUB_PATH env: PNPM_HOME: ~/.pnpm-store/node_modules/.bin - - name: Check .changeset folder - run: ls -la .changeset - name: Create Release Pull Request or Publish id: changesets uses: changesets/action@v1 with: - publish: pnpm exec turbo lint && pnpm exec turbo build && pnpm exec changeset publish + publish: pnpm exec turbo release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index afa9319..2129384 100755 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "build": "turbo build", "dev": "turbo dev", "lint": "turbo lint", - "format": "prettier --write \"**/*.{ts,tsx,md}\"" + "release": "turbo lint && turbo build && changeset publish" }, "devDependencies": { "@changesets/cli": "^2.27.9", diff --git a/turbo.json b/turbo.json index c1c6f54..e62fc1a 100755 --- a/turbo.json +++ b/turbo.json @@ -10,6 +10,7 @@ "lint": { "dependsOn": ["^lint"] }, + "release": {}, "dev": { "cache": false, "persistent": true,