Skip to content

Commit

Permalink
gha: fix installation + cache node
Browse files Browse the repository at this point in the history
Signed-off-by: Danielle Lancashire <[email protected]>
  • Loading branch information
endocrimes committed May 28, 2024
1 parent 27704be commit cc4cc68
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
cache: true

- name: Generate CRD reference docs
run: ./generate.sh
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
cache: true

- name: Generate CRD reference docs
run: ./generate.sh
Expand Down

0 comments on commit cc4cc68

Please sign in to comment.