Skip to content

Commit

Permalink
fix(Publish): Using dist folder for publish
Browse files Browse the repository at this point in the history
see #383
  • Loading branch information
hypery2k committed Jan 7, 2020
1 parent bb519c2 commit 5719d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: |
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc
npm i
npm run build
npm run build && cd dist
npm publish
if: contains( github.ref, 'master' ) || contains( github.base_ref, 'master' )

Expand All @@ -54,7 +54,7 @@ jobs:
CURRENT_TIME=$(date +%s)
NEW_VERSION=${PACKAGE_VERSION}-build${CURRENT_TIME}
npm i
npm run build
npm version $NEW_VERSION --no-git-tag-version
npm run build && cd dist
npm publish --tag next
if: contains( github.ref, 'develop' ) || contains( github.base_ref, 'develop' )

0 comments on commit 5719d53

Please sign in to comment.