Skip to content

Commit

Permalink
Update npm-publish-github-packages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thaitri2005 authored Apr 29, 2024
1 parent 5a82a54 commit 7895a49
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -17,10 +16,18 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Build
run: npm run build --if-present

- name: Run Tests
run: npm test

0 comments on commit 7895a49

Please sign in to comment.