Skip to content

Merge pull request #3339 from VenusProtocol/dependabot/npm_and_yarn/t… #1483

Merge pull request #3339 from VenusProtocol/dependabot/npm_and_yarn/t…

Merge pull request #3339 from VenusProtocol/dependabot/npm_and_yarn/t… #1483

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
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