Skip to content

Commit

Permalink
Fix publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Feb 13, 2024
1 parent 176f3f1 commit c17534a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ jobs:
npm run build
cp README.md packages/playground/
- run: |
TAG='latest'
PRERELEASE=false
NPM_TAG='latest'
IS_PRERELEASE=false
if [[ $GITHUB_REF_NAME =~ 'alpha' || $GITHUB_REF_NAME =~ 'beta' || $GITHUB_REF_NAME =~ 'rc' ]]; then
TAG='next'
PRERELEASE=true
NPM_TAG='next'
IS_PRERELEASE=true
fi
echo "NPM_TAG=$PRERELEASE" >> $GITHUB_ENV
echo "IS_PRERELEASE=$PRERELEASE" >> $GITHUB_ENV
echo "NPM_TAG=$NPM_TAG" >> $GITHUB_ENV
echo "IS_PRERELEASE=$IS_PRERELEASE" >> $GITHUB_ENV
- uses: JS-DevTools/npm-publish@v3
with:
provenance: true
Expand Down

0 comments on commit c17534a

Please sign in to comment.