-
-
Notifications
You must be signed in to change notification settings - Fork 752
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3899 from udecode/ci/node-20
CI: node 22
- Loading branch information
Showing
9 changed files
with
95 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,17 +13,18 @@ jobs: | |
update-registry: | ||
name: Update Registry | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [18.18.x] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: 22 | ||
|
||
- name: 📥 Monorepo install | ||
uses: ./.github/actions/yarn-nm-install | ||
|
@@ -49,3 +50,5 @@ jobs: | |
committer: GitHub <[email protected]> | ||
branch: registry | ||
delete-branch: true | ||
add-paths: | | ||
apps/www/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,66 +12,63 @@ on: | |
|
||
jobs: | ||
build: | ||
name: build | ||
name: Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.18.x] | ||
template: | ||
- plate-template | ||
- plate-playground-template | ||
defaults: | ||
run: | ||
working-directory: templates/${{ matrix.template }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/[email protected] | ||
name: Install pnpm | ||
- name: 📦 Install pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 8.6.1 | ||
run_install: false | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
- name: ♻️ Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
node-version: 22 | ||
cache: 'pnpm' | ||
cache-dependency-path: '**/pnpm-lock.yaml' | ||
|
||
- name: Get pnpm store directory | ||
id: pnpm-cache | ||
run: | | ||
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT | ||
- uses: actions/cache@v4 | ||
name: Setup pnpm cache | ||
- name: 🔄 Setup pnpm cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
path: $(pnpm store path) | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
${{ runner.os }}-pnpm- | ||
- name: 📥 Install dependencies | ||
run: pnpm install --no-frozen-lockfile | ||
|
||
- name: 🏗 Run build | ||
- name: 🏗 Build | ||
run: pnpm build | ||
|
||
sync: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
if: ${{ success() }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
template: | ||
- plate-template | ||
- plate-playground-template | ||
if: ${{ success() }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Sync Templates | ||
|
||
- name: 🔄 Sync Templates | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | ||
run: ./scripts/sync-templates.sh "templates/${{ matrix.template }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v20.12.1 | ||
v22 |