Skip to content

upgrade yarn v4.5.0 (#77) #52

upgrade yarn v4.5.0 (#77)

upgrade yarn v4.5.0 (#77) #52

Workflow file for this run

name: publish
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: yarn install --immutable --immutable-cache
- name: bump version
run: |
# git user config
git config --local user.name "Seokju Na"
git config --local user.email "[email protected]"
# bump version
yarn version apply --all
git add -A
git checkout -- .
git diff-index --quiet HEAD -- || SHOULD_COMMIT="yes"
# update
echo $SHOULD_COMMIT
if [ -n "$SHOULD_COMMIT" ];
then
git commit -m "bump version [skip ci]"
git push origin HEAD
else
echo "no updates";
fi
- name: publish
run: |
echo "npmAuthToken: ${{ secrets.NPM_TOKEN }}" | tee $HOME/.yarnrc.yml
yarn workspaces foreach --no-private npm publish --access public --tolerate-republish