Skip to content

Commit

Permalink
ci: upgrade npm, use cache for tests & build before releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Sep 10, 2023
1 parent 1d20c3b commit 7373cbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
node-version: ${{ env.node-version }}
- name: Install packages
run: npm ci
- name: Build project
run: npm run build
- name: Run Semantic Release
run: npm run release
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Upgrade NPM
run: npm install -g npm
- name: Install packages
run: npm ci
- name: Build project
Expand Down

0 comments on commit 7373cbd

Please sign in to comment.