Skip to content

Commit

Permalink
Use branch-local package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfhandl committed Jan 22, 2025
1 parent 38b83d0 commit c1c275d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/schema-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ jobs:
node-version: '20.x'

- name: Install dependencies from main
run: |
git checkout remotes/origin/main -- package.json package-lock.json
npm ci
run: npm ci

- name: Run tests
run: npm run test
7 changes: 4 additions & 3 deletions .github/workflows/validate-markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ jobs:
runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4 # checkout repo content
with:
fetch-depth: 0
- name: use the javascript environment from main
run: |
git checkout remotes/origin/main -- package.json package-lock.json .markdownlint.yaml

- uses: actions/setup-node@v4 # setup Node.js
with:
node-version: '20.x'

- name: Validate markdown
run: npx --yes mdv versions/3.*.md

- name: Lint markdown 3.0.4, 3.1.1, and later
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/3.0.4.md versions/3.1.[^0].md versions/3.[2-9].*.md

0 comments on commit c1c275d

Please sign in to comment.