message: fix: pre-release publishing workflow
diff: @@ -22,7 +22,7 @@ jobs:
  - name: Is Pre-Release
  run: |
  - STR='${RELEASE_VERSION}'
  + STR="${RELEASE_VERSION}"
  SUB='pre.'
  if [[ "$STR" == *"$SUB"* ]]; then
  echo PRE_RELEASE=true >> $GITHUB_ENV
  @@ -127,14 +127,15 @@ jobs:
  if: ${{env.TAG_EXISTS}} == 'false'
  run: yarn build
  - - name: Publish Node Packages To NPM
  - if: ${{env.TAG_EXISTS}} == 'false'
  - run: |
  - if [ "$PRE_RELEASE" -ne "true" ] ; then
  - yarn publish:npm
  - else
  - yarn publish:pre:npm
  - fi
  + - name: Publish Node Packages To NPM (Latest)
  + if: ${{env.TAG_EXISTS}} == 'false' && ${{env.PRE_RELEASE}} == 'false'
  + run: yarn publish:npm
  + env:
  + NPM_AUTH_TOKEN: ${{secrets.POLYWRAP_BUILD_BOT_NPM_PAT}}
  +
  + - name: Publish Node Packages To NPM (Pre-Release)
  + if: ${{env.TAG_EXISTS}} == 'false' && ${{env.PRE_RELEASE}} == 'true'
  + run: yarn publish:pre:npm
  env:
  NPM_AUTH_TOKEN: ${{secrets.POLYWRAP_BUILD_BOT_NPM_PAT}}
  