chore: bump package versions #1784
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: Release | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
VITE_ENV: "ci" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # to be able to publish a GitHub release | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "lts/*" | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn | |
# Bump package versions based on changesets and commit changes to the main branch | |
- name: Bump package versions | |
env: | |
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }} | |
run: | | |
git config user.name toolsvenus | |
git config user.email [email protected] | |
git fetch origin | |
git rebase --strategy-option=theirs origin/main | |
npx changeset version | |
git add -A | |
git status | |
git commit --verbose -a -m "chore: bump package versions" || exit 0 | |
git push |