Adds release job #1
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: | |
# Sequence of patterns matched against refs/heads | |
branches: | |
- dev | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- v* | |
jobs: | |
build_wheel: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# TODO Replace email with official email | |
- run: git config --global user.email "support@tenstorrent.com" | |
- run: git config --global user.name "CI Job" | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: v22.1.0 | |
- name: Bump version for Node.js (package.json) | |
run: | | |
npm version patch # Or `minor` / `major` depending on your needs | |
git add package.json | |
cat package.json | |
env: | |
CI: true | |
- name: Bump version for Python (pyproject.toml) | |
run: | | |
python -m pip install --user --upgrade toml | |
python3 scripts/bump_pyproject_version.py | |
git add pyproject.toml | |
cat pyproject.toml | |
- name: Commit changes | |
run: | | |
git commit -m "chore(release): bump versions" | |
git push origin dev |