Skip to content

Commit

Permalink
chore(ci/cd): Added 'npm install' to publish workflow
Browse files Browse the repository at this point in the history
Currently the main problem is the 'prepare' script which is called via 'npm publish' since dev depenendencies are not installed during that call publishing fails.
To mitigate that we now install all dependencies pre-publish.
  • Loading branch information
mrbandler committed Dec 30, 2021
1 parent 941dad8 commit aa00381
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/

- name: Install dev dependencies (needed for publish)
run: npm install

- name: Publish to npm
uses: JS-DevTools/npm-publish@v1
with:
Expand Down

0 comments on commit aa00381

Please sign in to comment.