Skip to content

Commit be3d239

Browse files
committed
Simplify GitHub Actions workflow
1 parent f0517dd commit be3d239

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
paths:
8-
- 'mongodb-rag-docs/**'
9-
- '.github/workflows/deploy-docs.yml'
107

118
permissions:
129
contents: write
@@ -15,21 +12,24 @@ jobs:
1512
deploy:
1613
name: Deploy to GitHub Pages
1714
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: mongodb-rag-docs
1818
steps:
1919
- uses: actions/checkout@v3
2020

21-
- name: Setup Node.js
22-
uses: actions/setup-node@v3
21+
- uses: actions/setup-node@v3
2322
with:
2423
node-version: 18
24+
registry-url: 'https://registry.npmjs.org'
2525

2626
- name: Install dependencies
27-
working-directory: mongodb-rag-docs
28-
run: npm install
27+
run: |
28+
npm install --no-package-lock
2929
3030
- name: Build website
31-
working-directory: mongodb-rag-docs
32-
run: npm run build
31+
run: |
32+
npm run build
3333
3434
- name: Deploy to GitHub Pages
3535
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)