Skip to content

feat: add release workflow #4904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/ci-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release Twenty
on:
workflow_dispatch:
inputs:
version:
required: true
description: Version to release, without the v (e.g. 1.2.3)
ref:
default: main
description: Ref to start the release from (e.g. main, sha)

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.ref }}

- name: Sanitize version
id: sanitize
run: |
echo version=$(echo ${{ github.event.inputs.version }} | sed 's/^v//') >> $GITHUB_ENV

- name: Update versions
working-directory: packages
run: |
for dir in twenty-docs twenty-emails twenty-front twenty-server twenty-ui twenty-website
do
cd $dir
npm version ${{ steps.sanitize.outputs.version }} --no-git-tag-version
cd ..
done

# Make sure we have the latest changes before committing
- name: Pull changes
run: git pull --rebase

- uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.event.inputs.ref }}
commit_message: "chore: release v${{ steps.sanitize.outputs.version }}"
tagging_message: v${{ steps.sanitize.outputs.version }}

commit_user_name: Github Action Deploy
commit_user_email: [email protected]
commit_author: Github Action Deploy <[email protected]>
Loading