ci(deps): bump actions/setup-node from 4.0.2 to 4.0.3 #381
Workflow file for this run
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
name: Documentation | |
on: | |
push: | |
paths: | |
- ".github/workflows/documentation.yml" | |
- "documentation/**" | |
- "src/**" | |
repository_dispatch: | |
types: [generate-documentation] | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
actions: write | |
contents: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: "lts/*" | |
- name: Get yarn cache | |
id: yarn-cache | |
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | |
- name: Cache dependencies | |
uses: actions/[email protected] | |
with: | |
path: ${{ steps.yarn-cache.outputs.dir }} | |
key: ${{ runner.os }}-documentation-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-documentation- | |
- name: Install lib 💻 | |
run: | | |
npm install | |
- name: Build lib 🤖 | |
run: | | |
npm run build | |
- name: Link lib 🔗 | |
run: | | |
npm link | |
- name: Install website 💻 | |
run: | | |
cd documentation | |
npm link fhir-dosage-utils --save | |
npm install --prefer-dedupe | |
npm dedupe | |
- name: Build website 🤖 | |
run: | | |
cd documentation | |
yarn build | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./documentation/build |