diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2022-04-04 10:32:52 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2022-04-04 10:57:11 +0200 |
| commit | 66bba0c658c734a8c0ef407f68165c3cde397ac0 (patch) | |
| tree | e1957617fc309e480df27e23ab984855549890c6 /.github | |
| parent | 5ec616232795a7190674ed271234bf5eb2bc7b47 (diff) | |
| download | mullvadvpn-66bba0c658c734a8c0ef407f68165c3cde397ac0.tar.xz mullvadvpn-66bba0c658c734a8c0ef407f68165c3cde397ac0.zip | |
Switch to using the cache function in actions/setup-node
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/frontend.yml | 12 | ||||
| -rw-r--r-- | .github/workflows/translations.yml | 16 |
2 files changed, 14 insertions, 14 deletions
diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 78d879d9e3..644120250e 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -23,18 +23,18 @@ jobs: uses: actions/checkout@v2 - name: Setup Node.js environment - uses: actions/setup-node@v2.1.5 + uses: actions/setup-node@v3 with: node-version: '16.9.1' + cache: 'npm' + cache-dependency-path: gui/package-lock.json - name: Update NPM run: npm i -g npm - - name: Install and cache dependencies - uses: bahmutov/npm-install@v1 - with: - working-directory: gui - install-command: npm ci + - name: Install dependencies + working-directory: gui + run: npm ci - name: Check formatting working-directory: gui diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index dead997706..1fd46c98d6 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -16,19 +16,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Install Node.js - uses: actions/setup-node@v2 + - name: Setup Node.js environment + uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '16.9.1' + cache: 'npm' + cache-dependency-path: gui/package-lock.json - name: Update NPM run: npm i -g npm - - name: Install and cache JS dependencies - uses: bahmutov/npm-install@v1 - with: - working-directory: gui - install-command: npm ci + - name: Install JS dependencies + working-directory: gui + run: npm ci - name: Install nightly Rust uses: ATiltedTree/setup-rust@v1.0.4 |
