support/enterprise page refactor (#1511) #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adapted from @chalin's work on https://github.com/chalin/docsy-starter | |
name: Links | |
on: | |
merge_group: | |
pull_request: | |
push: { branches: [main] } | |
jobs: | |
build-and-check-links: | |
name: BUILD and CHECK LINKS | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create NPM cache-hash input file | |
run: | | |
mkdir -p tmp | |
jq '{devDependencies, engines, gitHubActionCacheKey}' package.json > tmp/package-ci.json | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
cache-dependency-path: tmp/package-ci.json | |
- run: npm install --omit=optional | |
- run: npm run check:links |