chore(deps): update actions/setup-node action to v4 (#965) #185
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: Build docs | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.vuepress/**' | |
- '*.md' | |
- 'docs/**.md' | |
- '@ecomplus/*/*.md' | |
- '@ecomplus/*/docs/**.md' | |
- '.github/workflows/build-docs.yml' | |
- '.github/build-docs' | |
jobs: | |
build-docs: | |
name: Vuepress build and deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '14.x' | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm ci | |
- name: Run documentation build | |
run: npm run docs:build | |
- name: Deploy to GH Pages | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: .vuepress/dist |