Skip to content

Commit

Permalink
fix: check before running npm ci
Browse files Browse the repository at this point in the history
  • Loading branch information
roboflank committed Jan 14, 2021
1 parent 66b44be commit 975cbae
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/test-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,15 @@ jobs:
node-version: 12.x

- name: Install
run: npm ci
run: |
if [ -e yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -e package-lock.json ]; then
npm ci
else
npm i
fi
npm run build
- name: Release
run: npx semantic-release
Expand Down

0 comments on commit 975cbae

Please sign in to comment.