Skip to content

Commit 145c30a

Browse files
add extract create-next-app version for CI
1 parent 36f64e4 commit 145c30a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/check-nextjs.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,16 @@ jobs:
3131
node-version: ${{ matrix.NODE }}
3232
cache: 'npm'
3333

34+
- name: Extract create-next-app version
35+
run: |
36+
NEXT_APP_VERSION=$(node -e "const versions = require('./packages/devextreme-cli/src/utility/latest-versions.js'); console.log(versions['create-next-app'])")
37+
echo "Using create-next-app version: $NEXT_APP_VERSION"
38+
echo "NEXT_APP_VERSION=$NEXT_APP_VERSION" >> $GITHUB_ENV
39+
shell: bash
40+
3441
- name: Create Next.js application
3542
run: |
36-
npx create-next-app@latest test-nextjs-app \
43+
npx create-next-app@{{ env.NEXT_APP_VERSION }} test-nextjs-app \
3744
--typescript=${{ matrix.TYPESCRIPT }} \
3845
--src-dir=${{ matrix.SRC_DIR }} \
3946
--app=${{ matrix.APP_ROUTER }} \

0 commit comments

Comments
 (0)