Skip to content

Commit

Permalink
Add NPM caching
Browse files Browse the repository at this point in the history
  • Loading branch information
mcs committed Apr 2, 2024
1 parent 2bfebad commit 79cee75
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/script-tsumbeta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ jobs:
steps:
- name: Check out the repository to the runner
uses: actions/checkout@v4
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- name: Cache
uses: actions/cache@v4
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Make the script files executable
run: chmod +x build.sh
- name: Compile sources and create index.zip
Expand Down

0 comments on commit 79cee75

Please sign in to comment.