Skip to content

Commit

Permalink
chore: use pnpm for publish again (#251)
Browse files Browse the repository at this point in the history
* chore: use pnpm for publish again

* chore: avoid conflict with bun in deploy

* chore: release

Signed-off-by: zaida04 <[email protected]>

---------

Signed-off-by: zaida04 <[email protected]>
Co-authored-by: zaida04 <[email protected]>
  • Loading branch information
zaida04 and zaida04 authored Apr 21, 2024
1 parent b247f59 commit 690c73e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,27 @@ jobs:
with:
token: ${{ secrets.API_TOKEN_GITHUB }}
- uses: oven-sh/setup-bun@v1

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 8.12.1
run_install: true

- name: Install dependencies
run: bun install
- name: Install turbo globally
run: pnpm install -g turbo

- name: Build packages
run: bun run build
run: rm bun.lockb && pnpm turbo run build

- name: Apply version changes to packages
run: bun run changeset:version
run: pnpm run changeset:version

- name: Commit package.json changes
uses: EndBug/add-and-commit@v9
Expand All @@ -31,7 +43,7 @@ jobs:
push: true

- name: Recursive Release
run: bun turbo run release --continue
run: pnpm recursive publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ coverage/
packages/api/preserve/**
.turbo

pnpm-*.yaml
pnpm-lock.yaml
*.tsbuildinfo
*.log
*.env
Expand Down
Binary file removed bun.lockb
Binary file not shown.
5 changes: 5 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
packages:
- "packages/**"
- "services/**"
- "apps/**"
- "!packages/create-guilded-app/templates/**"

0 comments on commit 690c73e

Please sign in to comment.