File tree Expand file tree Collapse file tree 3 files changed +78
-45
lines changed Expand file tree Collapse file tree 3 files changed +78
-45
lines changed Original file line number Diff line number Diff line change 4040 filename : ${{ env.APP_NAME }}/appinfo/info.xml
4141 expression : " //info//dependencies//nextcloud/@min-version"
4242
43+ - name : Read package.json node and npm engines version
44+ uses : skjnldsv/read-package-engines-version-actions@1bdcee71fa343c46b18dc6aceffb4cd1e35209c6 # v1.2
45+ id : versions
46+ # Continue if no package.json
47+ continue-on-error : true
48+ with :
49+ path : ${{ env.APP_NAME }}
50+ fallbackNode : " ^20"
51+ fallbackNpm : " ^8"
52+
53+ - name : Set up node ${{ steps.versions.outputs.nodeVersion }}
54+ # Skip if no package.json
55+ if : ${{ steps.versions.outputs.nodeVersion }}
56+ uses : actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3
57+ with :
58+ node-version : ${{ steps.versions.outputs.nodeVersion }}
59+
60+ - name : Set up npm ${{ steps.versions.outputs.npmVersion }}
61+ # Skip if no package.json
62+ if : ${{ steps.versions.outputs.npmVersion }}
63+ run : npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
64+
4365 - name : Set up php ${{ env.PHP_VERSION }}
4466 uses : shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2
4567 with :
6082 cd ${{ env.APP_NAME }}
6183 composer install --no-dev
6284
85+ - name : Build ${{ env.APP_NAME }}
86+ # Skip if no package.json
87+ if : ${{ steps.versions.outputs.nodeVersion }}
88+ run : |
89+ cd ${{ env.APP_NAME }}
90+ npm ci
91+ npm run build
92+
6393 - name : Check Krankerl config
6494 id : krankerl
6595 uses : andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2
Original file line number Diff line number Diff line change 5757 "eslint-webpack-plugin" : " ^4.2.0" ,
5858 "stylelint-webpack-plugin" : " ^5.0.1" ,
5959 "webpack" : " ^5.98.0" ,
60- "webpack-cli" : " ^6.0.1 "
60+ "webpack-cli" : " ^5.1.4 "
6161 },
6262 "engines" : {
6363 "node" : " ^20.0.0" ,
You can’t perform that action at this time.
0 commit comments