docs: split docs package for vuepress (#12382)
* docs: split docs package for vuepress * fix: yarn lock changes gha * fix: remove npm script at top level * docs: update oneclick link refs: https://github.blog/changelog/2023-04-24-one-click-into-github-codespaces
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
on:
|
||||
pull_request: {}
|
||||
pull_request_target:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- .github/workflows/semgrep.yml
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
paths:
|
||||
- .github/workflows/semgrep.yml
|
||||
@@ -13,7 +16,7 @@ name: Semgrep
|
||||
jobs:
|
||||
semgrep:
|
||||
name: Scan
|
||||
runs-on: ubuntu-20.04
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
|
||||
container:
|
||||
|
||||
@@ -118,6 +118,9 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
node-version: [ 16, 18 ]
|
||||
defaults:
|
||||
run:
|
||||
working-directory: docs
|
||||
name: Build docs on Node ${{ matrix.node-version }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
@@ -125,14 +128,15 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'yarn'
|
||||
cache-dependency-path: docs/yarn.lock
|
||||
- run: yarn
|
||||
- name: Set environment variable for Node v18
|
||||
if: ${{ matrix.node-version == '18' }}
|
||||
- name: Set environment variable for Node v16 above
|
||||
if: ${{ matrix.node-version > '16' }}
|
||||
run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV
|
||||
- name: Build docs
|
||||
run: npm run docs:build
|
||||
- name: Unset environment variable for Node v18
|
||||
if: ${{ matrix.node-version == '18' }}
|
||||
- name: Unset environment variable for Node v16 above
|
||||
if: ${{ matrix.node-version > '16' }}
|
||||
run: echo "NODE_OPTIONS=''" >> $GITHUB_ENV
|
||||
|
||||
all:
|
||||
|
||||
@@ -4,6 +4,7 @@ on:
|
||||
paths:
|
||||
- '.github/workflows/yarn-lock-changes.yml'
|
||||
- 'yarn.lock'
|
||||
- 'docs/yarn.lock'
|
||||
|
||||
jobs:
|
||||
yarn_lock_changes:
|
||||
|
||||
Reference in New Issue
Block a user