Skip to content

Commit

Permalink
fix: move build out of publishing process
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Apr 11, 2020
1 parent b9e7481 commit 842800d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release-on-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
node-version: 12
- name: Install dependencies
run: npm install
# TODO run build:package and prepare npm package for release
- name: Build Package
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"test": "react-scripts test",
"eject": "react-scripts eject",
"storybook": "start-storybook -p 9090 -s public",
"prepublishOnly": "npm run build",
"build": "npm run build:babel && cp ./package.json ./dist/package.json && cp ./README.md ./dist/README.md",
"dist": "npm run build && cd dist && npm publish",
"build:babel": "NODE_ENV=production babel ./src --ignore \"src/**/*.story.js\" --out-dir=./dist && rm dist/index.js && cp dist/lib.js dist/index.js",
Expand Down

0 comments on commit 842800d

Please sign in to comment.