Skip to content

Commit

Permalink
test publish
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Dec 2, 2019
1 parent 968cecd commit cf0babd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: |
npm publish
(cd core && npm publish)
(cd cli && npm publish)
if: github.ref == 'master'

- name: publish preview package
Expand All @@ -69,6 +70,7 @@ jobs:
run: |
PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
CURRENT_TIME=$(date "+%Y-%m-%d_%H:%M.%S")
npm version $PACKAGE_VERSION_$CURRENT_TIME
npm publish --tag next
NEW_VERSION=$PACKAGE_VERSION_$CURRENT_TIME
(cd core && npm version $NEW_VERSION && npm publish --tag next)
(cd cli && npm i galenframework@$NEW_VERSION --E && npm version $NEW_VERSION && npm publish --tag next)
#if: github.ref == 'develop'

0 comments on commit cf0babd

Please sign in to comment.