From c6b49203804b875f77c28176674101c779a9ace5 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 16 Dec 2024 15:07:35 +0100 Subject: [PATCH] fix(ci): build js artifacts before checking reuse compliance Signed-off-by: Max --- .github/workflows/reuse.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml index 031e80a8355..b7a3dd95ea6 100644 --- a/.github/workflows/reuse.yml +++ b/.github/workflows/reuse.yml @@ -18,5 +18,27 @@ jobs: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - name: Read package.json node and npm engines version + uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3 + id: versions + with: + fallbackNode: '^20' + fallbackNpm: '^10' + + - name: Set up node ${{ steps.versions.outputs.nodeVersion }} + uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 + with: + node-version: ${{ steps.versions.outputs.nodeVersion }} + + - name: Set up npm ${{ steps.versions.outputs.npmVersion }} + run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}' + + - name: Install dependencies & build + env: + CYPRESS_INSTALL_BINARY: 0 + run: | + npm ci + npm run build --if-present + - name: REUSE Compliance Check uses: fsfe/reuse-action@3ae3c6bdf1257ab19397fab11fd3312144692083 # v4.0.0