Skip to content

fix: update setup-node action version #38

fix: update setup-node action version

fix: update setup-node action version #38

Workflow file for this run

---
name: Fastly Compute Branch Previews
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow}}
on:
pull_request:
types: [opened, synchronize, reopened, closed]
jobs:
build:
name: build
runs-on: ubuntu-latest
container:
image: quay.io/rockylinux/rockylinux:9
options: --user root
environment: preview
outputs:
DOCS_SHA: ${{steps.build.outputs.DOCS_SHA}}
steps:
- name: Checkout mkdocs config
uses: actions/checkout@v4
- name: "Build Site"
id: build
uses: ./.github/actions/build-and-cache/
- name: set docs-sha
id: docs-sha
run: echo "DOCS_SHA=$DOCS_SHA" >> "$GITHUB_OUTPUT"
preview:
name: preview
needs: build
runs-on: ubuntu-latest
environment: preview
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- run: ls -la
- uses: actions/cache/restore@v4
id: docs-cache
with:
path: build/site/minified
key: cache-docs-${{ needs.build.outputs.DOCS_SHA }}
fail-on-cache-miss: false
enableCrossOsArchive: true
- name: Retrieve build artifacts
if: steps.docs-cache.outputs.cache-hit != 'true'
uses: actions/download-artifact@v4
with:
name: build-minified
path: |
build/minified/site
- run: ls -la
- uses: neil-forks/compute-actions/preview@preview-with-subdir
with:
fastly-api-token: ${{ secrets.FASTLY_API_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
project_directory: ./compute-js