Skip to content

Commit

Permalink
Merge pull request #597 from justin-tay/fixaction
Browse files Browse the repository at this point in the history
build(ci): update ci actions and use lts
  • Loading branch information
LoneRifle authored Oct 6, 2023
2 parents 2f71a6c + 8750b49 commit 739976c
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,13 @@ jobs:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: '12.x'
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
node-version: 'lts/*'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- run: npm ci
- run: npx lockfile-lint --type npm --path package-lock.json --validate-https --allowed-hosts npm
- run: npm run lint

0 comments on commit 739976c

Please sign in to comment.