message: add prerelease logic to master branch build script
diff: @@ -38,6 +38,7 @@ jobs:
  - run: npm run build
  #create npm package
  - run: npm pack
  + - run: npm run test-related-projects
  #create GitHub release
  - name: Create GitHub Release
  @@ -59,5 +60,7 @@ jobs:
  with:
  asset_paths: '["./*.tgz"]'
  + #If there's a dash followed by an alpha character, this is a prerelease and should be tagged "next". Otherwise tag as "latest"
  + - run: if [[ "${{ github.ref }}" =~ -[a-zA-Z] ]]; then echo "DIST_TAG=next" >> $GITHUB_ENV; else echo "DIST_TAG=latest" >> $GITHUB_ENV; fi
  #upload to npm
  - - run: npm publish
  + - run: npm publish --tag ${{env.DIST_TAG}}
  