Skip to content

Commit

Permalink
Properly cache Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthri committed Jan 22, 2024
1 parent 6eabf50 commit 6189489
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-tgui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,21 @@ jobs:
git config --global user.email ${{ vars.GIT_EMAIL || '41898282+github-actions[bot]@users.noreply.github.com' }}
git config --global user.name ${{ vars.GIT_USERNAME || 'tgui builder' }}
- name: Install Dependencies
id: install-dependencies
run: |
source ~/.nvm/nvm.sh
nvm install 20
echo "NPM_CACHE_DIR=$(npm config get cache)" >> $GITHUB_OUTPUT
echo "NPM_GLOBAL_CACHE_DIR=$(npm config get prefix)/node_modules/" >> $GITHUB_OUTPUT
- name: Cache Dependencies
uses: actions/cache@v3
with:
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
path: |
**/node_modules
**/.yarn
${{ steps.install-dependencies.outputs.NPM_CACHE_DIR }}
${{ steps.install-dependencies.outputs.NPM_GLOBAL_CACHE_DIR }}
- name: Update Branch
if: ${{ inputs.merge-master }}
run: |
Expand Down

0 comments on commit 6189489

Please sign in to comment.