Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @codeui/kit and kobalte #647

Merged
merged 25 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/hip-timers-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@codeimage/highlight': minor
'@codeimage/locale': minor
'@codeimage/app': minor
'@codeimage/website': minor
'@codeimage/api': minor
---

Update @codeui dependency, update vite/rollup and infra deps
4 changes: 2 additions & 2 deletions .github/actions/pnpm-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ runs:
steps:
- uses: pnpm/action-setup@v4
with:
version: 8
version: 9.5.0

- name: Expose pnpm config(s) through "$GITHUB_OUTPUT"
id: pnpm-config
Expand All @@ -21,7 +21,7 @@ runs:
run: |
echo "YEAR_MONTH=$(/bin/date -u "+%Y%m")" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-config.outputs.STORE_PATH }}
Expand Down
9 changes: 3 additions & 6 deletions .github/actions/setup-job/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ runs:
using: 'composite'

steps:
- name: Checkout PR
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-job-node@v4
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
node-version: 22
155 changes: 53 additions & 102 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
# with:
# submodules: 'true'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

Expand Down Expand Up @@ -59,16 +55,11 @@ jobs:
name: Lint
needs: install
runs-on: ubuntu-latest

steps:
- name: Checkout PR
uses: actions/checkout@v3
# with:
# submodules: 'true'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

Expand All @@ -85,15 +76,11 @@ jobs:
name: Build packages
needs: [ install ]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
# with:
# submodules: 'true'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Checkout PR
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

Expand All @@ -108,7 +95,7 @@ jobs:
pnpm libs:build

- name: Cache packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: packages
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
Expand All @@ -119,13 +106,10 @@ jobs:
needs: [ install, build-packages ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# with:
# submodules: 'true'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Checkout PR
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

Expand All @@ -136,7 +120,7 @@ jobs:
pnpm --filter=@codeimage/prisma-models build

- name: Restore dist
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: packages
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
Expand All @@ -156,21 +140,16 @@ jobs:
needs: [ build-packages ]
if: ${{ github.head_ref != 'next' }}
runs-on: ubuntu-latest

steps:
- name: Checkout PR
uses: actions/checkout@v3
# with:
# submodules: 'true'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

- name: Restore dist
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: packages
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
Expand Down Expand Up @@ -208,22 +187,16 @@ jobs:
needs: [ build-packages ]
if: ${{ github.head_ref == 'next' }}
runs-on: ubuntu-latest

steps:
- name: Checkout PR
uses: actions/checkout@v3
with:
ref: 'refs/pull/${{ github.event.number }}/merge'
# submodules: 'true'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

- name: Restore dist
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: packages
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
Expand Down Expand Up @@ -261,22 +234,16 @@ jobs:
needs: [ build-packages ]
if: (${{ needs.install.outputs.app-change == 'true' }} || ${{ needs.install.outputs.libs-change == 'true' }})
runs-on: ubuntu-latest

steps:
- name: Checkout PR
uses: actions/checkout@v3
with:
submodules: 'true'
# ref: 'refs/pull/${{ github.event.number }}/merge'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

- name: Restore dist
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: packages
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
Expand Down Expand Up @@ -304,22 +271,16 @@ jobs:
needs: [ build-packages ]
if: (${{ needs.install.outputs.app-change == 'true' }} || ${{ needs.install.outputs.libs-change == 'true' }})
runs-on: ubuntu-latest

steps:
- name: Checkout PR
uses: actions/checkout@v3
with:
ref: 'refs/pull/${{ github.event.number }}/merge'
# submodules: 'true'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

- name: Restore dist
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: packages
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}
Expand All @@ -346,7 +307,7 @@ jobs:
codeimage-website-pr-{{PR_NUMBER}}.vercel.app

- name: Cache website
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: apps/website
key: apps-website-${{ github.run_id }}-${{ github.run_number }}
Expand All @@ -357,19 +318,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
with:
ref: 'refs/pull/${{ github.event.number }}/merge'
# submodules: 'true'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

- name: Restore website
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: apps/website
key: apps-website-${{ github.run_id }}-${{ github.run_number }}
Expand All @@ -387,13 +343,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
# with:
# submodules: 'true'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Checkout PR
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

Expand All @@ -408,7 +361,7 @@ jobs:
pnpm prepare:api:deploy

- name: Cache build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
dist/api-bundle/**
Expand Down Expand Up @@ -449,14 +402,15 @@ jobs:
ALLOWED_ORIGINS: '*'

steps:
- uses: actions/checkout@v3
# with:
# submodules: 'true'
- name: Checkout PR
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

- name: Restore dist
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
packages
Expand Down Expand Up @@ -488,24 +442,21 @@ jobs:
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# with:
# submodules: 'true'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Checkout PR
uses: actions/checkout@v4
- name: 📥 Setup
uses: ./.github/actions/setup-job
- name: 📥 Monorepo install
uses: ./.github/actions/pnpm-install

- name: Restore packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: packages
key: packages-dist-${{ github.run_id }}-${{ github.run_number }}

- name: Restore api build
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
dist/api-bundle/**
Expand Down
Loading
Loading