diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index f39be128..2db10c62 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -40,11 +40,19 @@ jobs: id: pages uses: actions/configure-pages@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + - name: Install Node.js dependencies - run: npm install + run: npm ci - name: Setup Go environment - uses: actions/setup-go@v5.0.0 + uses: actions/setup-go@v5 + with: + go-version: '1.22.x' + cache: true - name: Generate CRD reference docs run: ./generate.sh diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 38e22944..821b4a54 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -25,11 +25,19 @@ jobs: wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ && sudo dpkg -i ${{ runner.temp }}/hugo.deb + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + - name: Install Node.js dependencies - run: npm install + run: npm ci - name: Setup Go environment - uses: actions/setup-go@v5.0.0 + uses: actions/setup-go@v5 + with: + go-version: '1.22.x' + cache: true - name: Generate CRD reference docs run: ./generate.sh