diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 739728a..0b57114 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,13 +17,15 @@ jobs: echo "APP_VERSION=3.0.0" >> $GITHUB_ENV - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + path: ${{ env.APP_NAME }} - name: Get appinfo data id: appinfo uses: skjnldsv/xpath-action@7e6a7c379d0e9abc8acaef43df403ab4fc4f770c # master with: - filename: appinfo/info.xml + filename: ${{ env.APP_NAME }}/appinfo/info.xml expression: "//info//dependencies//nextcloud/@min-version" - name: Read package.json node and npm engines version @@ -32,8 +34,9 @@ jobs: # Continue if no package.json continue-on-error: true with: + path: ${{ env.APP_NAME }} fallbackNode: '^20' - fallbackNpm: '^9' + fallbackNpm: '^10' - name: Set up node ${{ steps.versions.outputs.nodeVersion }} # Skip if no package.json @@ -51,6 +54,7 @@ jobs: env: NODE_ENV: production run: | + cd ${{ env.APP_NAME }} npm ci npm run build --if-present