Skip to content

Commit

Permalink
chore(publish-packages): script added
Browse files Browse the repository at this point in the history
  • Loading branch information
eunchurn committed Nov 28, 2023
1 parent b1159c1 commit d88c6bd
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 239 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,11 @@ jobs:
${{ runner.os }}-${{ hashFiles('**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml') }}-
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Type check
run: ${{ steps.detect-package-manager.outputs.manager }} typecheck
- name: TypeScript build
run: ${{ steps.detect-package-manager.outputs.runner }} build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: ${{ steps.detect-package-manager.outputs.runner }} packages:publish
publish: ${{ steps.detect-package-manager.outputs.runner }} publish-packages
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"prepare": "husky install",
"typecheck": "turbo run typecheck",
"packages:version": "changeset version",
"packages:publish": "changeset publish"
"packages:publish": "changeset publish",
"publish-packages": "turbo run build lint typecheck && changeset version && changeset publish"
},
"lint-staged": {
"*.+(js|jsx|ts|tsx|json|css|md|mdx)": [
Expand Down
Loading

0 comments on commit d88c6bd

Please sign in to comment.