Skip to content

Commit

Permalink
Replace volta-cli/action with actions/setup-node
Browse files Browse the repository at this point in the history
  • Loading branch information
raksooo committed Oct 16, 2023
1 parent 0890a3f commit 6fab981
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,21 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup volta
uses: volta-cli/action@v4

- name: Get npm cache directory path
id: npm-cache-dir-path
run: echo "::set-output name=dir::$(npm config get cache)"
- name: Read package.json
id: package_json
uses: zoexx/github-action-json-file-properties@release
with:
file_path: 'gui/package.json'

- name: Cache npm dependencies
uses: actions/cache@v3
- name: Setup node
uses: actions/setup-node@v3
with:
path: ${{ steps.npm-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
node-version: ${{ steps.node_version.outputs.value }}
cache: 'npm'
cache-dependency-path: gui/package-lock.json

- name: Update NPM
run: npm i -g npm@${{ steps.package_json.outputs.volta.npm }}

- name: Install JS dependencies
working-directory: gui
Expand Down

0 comments on commit 6fab981

Please sign in to comment.