Skip to content

Commit

Permalink
chore: don't publish prereleases as latest
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCalzone committed Jul 6, 2021
1 parent 6d4a938 commit ef62986
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly-config-publish.yml
Expand Up @@ -109,4 +109,4 @@ jobs:
VERSION=$(node script.js)
echo "Next version is $VERSION"
npm version "$VERSION" --ignore-scripts --no-git-tag-version
npm publish
npm publish --tag nightly
7 changes: 6 additions & 1 deletion .github/workflows/test-and-release.yml
Expand Up @@ -256,6 +256,9 @@ jobs:
BODY="${BODY//$'\n'/'%0A'}"
BODY="${BODY//$'\r'/'%0D'}"
echo "::set-output name=BODY::$BODY"
if [[ $VERSION == *"-"* ]] ; then
echo "::set-output name=TAG::--dist-tag next"
fi
- name: Install dependencies
run: yarn install --immutable
Expand All @@ -264,10 +267,12 @@ jobs:
run: yarn run build:full

- name: Publish packages to npm
env:
TAG: ${{ steps.extract_release.outputs.TAG }}
run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
npm whoami
yarn lerna publish from-package --yes
yarn lerna publish from-package --yes $TAG
- name: Create Github Release
uses: actions/create-release@v1
Expand Down

0 comments on commit ef62986

Please sign in to comment.