Skip to content

Commit

Permalink
Add prepare script (#18)
Browse files Browse the repository at this point in the history
* Added a prepare script to package, allowing install from master branch instead of npm

* Removed build from npm publish, as requested

Co-authored-by: Kristian Kauper <[email protected]>
Co-authored-by: Kristian Kauper <[email protected]>
  • Loading branch information
3 people authored Mar 29, 2022
1 parent 2e41431 commit db8bf35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"author": "Aliaksei Hrynko (https://github.com/hrynko)",
"repository": "github:hrynko/vue-pdf-embed",
"scripts": {
"prepare": "webpack build",
"build": "webpack build --progress",
"serve": "webpack serve --config webpack.dev.config.js --hot",
"test": "jest",
Expand Down

0 comments on commit db8bf35

Please sign in to comment.