Skip to content

Commit

Permalink
fix(workflow): combine GitHub npm task into 1 (#283)
Browse files Browse the repository at this point in the history
The `cd docs` command did not run together with the other GitHub tasks in the workflow definition.

This PR combines the NPM commands into a single task to keep track of the changed directory.
  • Loading branch information
stijnmoreels authored Feb 21, 2025
1 parent 483257d commit e158827
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/bump-docs-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: navigate to docs folder
run: cd docs

- name: Install npm dependencies
run: npm install


- name: Generate new version
run: npm run docusaurus docs:version ${{ github.event.inputs.version }}
run: |
cd docs
npm install
npm run docusaurus docs:version ${{ github.event.inputs.version }}
- name: Check for changes
run: |
Expand All @@ -45,4 +42,4 @@ jobs:
title: "docs(${{ github.event.inputs.version }}): bump new docs version"
body: "This automatically generated PR bumps the docs version to ${{ github.event.inputs.version }}."
commit-message: "docs(${{ github.event.inputs.version }}): bump new docs version"
delete-branch: true
delete-branch: true

0 comments on commit e158827

Please sign in to comment.