-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See for installing the correct npm version: actions/setup-node#213 (comment)
- Loading branch information
1 parent
fbb5d79
commit 4f1f5fe
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Update Translations | ||
# Change later for schedules | ||
on: | ||
push: | ||
branches: | ||
- add-gh-actions | ||
|
||
jobs: | ||
run-checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Read .nvmrc | ||
run: echo ::set-output name=NVMRC::$(cat .nvmrc) | ||
id: nvm | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "${{ steps.nvm.outputs.NVMRC }}" | ||
|
||
- name: cache node_modules | ||
uses: actions/cache@v2 | ||
with: | ||
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | ||
path: | | ||
node_modules | ||
- name: Install latest npm | ||
run: | | ||
npm install -g npm && | ||
npm --version && | ||
npm list -g --depth 0 | ||
- name: Install packages | ||
run: npm run install | ||
|
||
- name: Test Lint | ||
run: npm run format-all |