Skip to content

Commit c742c44

Browse files
committed
revert docs build and publish NPM-related changes
1 parent 8039974 commit c742c44

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/_release_docs.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,24 @@ jobs:
3737
uses: actions/setup-node@v6
3838
with:
3939
node-version: ${{ env.NODE_VERSION }}
40+
cache: npm
41+
cache-dependency-path: website/package-lock.json
42+
43+
- name: Install Node dependencies
44+
run: |
45+
npm install
46+
npm update @apify/docs-theme
47+
working-directory: ./website
48+
49+
# We do this as early as possible to prevent conflicts if someone else would push something in the meantime
50+
- name: Commit the updated package.json and lockfile
51+
run: |
52+
git config user.name 'GitHub Actions'
53+
git config user.email 'github-actions[bot]@users.noreply.github.com'
54+
git add website/package.json
55+
git add website/package-lock.json
56+
git diff-index --quiet HEAD || git commit -m 'chore: Automatic docs theme update [skip ci]' || true
57+
git push
4058
4159
- name: Set up Python
4260
uses: actions/setup-python@v6

0 commit comments

Comments
 (0)