fix(venn): FLUI-145 new color between hover and active state #559
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Release Candidate Package to npmjs | |
on: | |
pull_request: | |
branches: [ master, ui-v9 ] | |
jobs: | |
publish-release-candidate-to-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.16.1' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install Dependencies | |
run: | | |
npm ci | |
rm -rf ./core .lib | |
npm run build | |
working-directory: packages/ui | |
- name: Publish to NPM | |
run: | | |
current_version=ui@$(node -p -e "require('./package.json').version") | |
# exit if tag already exists | |
if [[ $(git tag -l "$current_version") ]]; then | |
echo "::info:: tag $current_version already exists, skip publish" | |
exit 0 | |
fi | |
re="(-rc\d+)" | |
nodescript="const reg = /(-rc\d+)/g; const m = '$current_version'.match(reg); m ? m[0] : '';" | |
rc_release=$(node -p -e "$nodescript") | |
if [[ $rc_release ]]; then | |
echo "::info:: create tag $current_version" | |
git tag $current_version | |
git push --tags | |
echo "::info:: publish npm package" | |
npm publish --tag rc | |
else | |
echo "::info:: no rc release found, skip publish" | |
exit 0 | |
fi | |
working-directory: packages/ui | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |