diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-01 16:27:14 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-01 16:27:14 -0700 |
commit | 76edb2c97cec70d6c26bc523ac8f64c80fb05c37 (patch) | |
tree | ac68e8f28d1ae5aeefcb4752ee4f09bff1ba511c /.github/workflows | |
parent | 8ca61941a8854a9f0d2862efd83c27f19abe92e6 (diff) | |
download | trackermap-web-76edb2c97cec70d6c26bc523ac8f64c80fb05c37.tar.gz trackermap-web-76edb2c97cec70d6c26bc523ac8f64c80fb05c37.tar.bz2 trackermap-web-76edb2c97cec70d6c26bc523ac8f64c80fb05c37.zip |
Improve CI scripts
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/new.yml | 5 | ||||
-rw-r--r-- | .github/workflows/old.yml | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/.github/workflows/new.yml b/.github/workflows/new.yml index 8c8ebf50..82e7f91e 100644 --- a/.github/workflows/new.yml +++ b/.github/workflows/new.yml @@ -14,7 +14,10 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 - - run: npm install + with: + cache: npm + cache-dependency-path: modern/package-lock.json + - run: npm ci working-directory: modern - run: npm run lint working-directory: modern diff --git a/.github/workflows/old.yml b/.github/workflows/old.yml index 747ddca0..e9b9fb27 100644 --- a/.github/workflows/old.yml +++ b/.github/workflows/old.yml @@ -12,7 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - - run: npm install --ignore-scripts + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + cache: npm + cache-dependency-path: package-lock.json + - run: npm ci --ignore-scripts - run: npm run lint |