ci: Update the release process for v1 release (#6366)

* release 1.0.0-rc from release-v1 branch.
* allow creating major releases
* disable merging releases back into master
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-06-02 12:18:32 +00:00 committed by GitHub
parent 85500d76fb
commit e8b51c8da9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 9 deletions

View file

@ -12,6 +12,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: release-v1
- uses: pnpm/action-setup@v2.2.4
- uses: actions/setup-node@v3

View file

@ -16,6 +16,7 @@ on:
options:
- patch
- minor
- major
jobs:
create-release-pr:

View file

@ -55,12 +55,12 @@ jobs:
continue-on-error: true
run: curl -u docsWorkflows:${{ secrets.N8N_WEBHOOK_DOCS_PASSWORD }} --request GET 'https://internal.users.n8n.cloud/webhook/trigger-release-note' --header 'Content-Type:application/json' --data '{"version":"${{env.RELEASE}}"}'
- name: Merge Release into 'master'
run: |
git fetch origin
git checkout --track origin/master
git config user.name "Jan Oberhauser"
git config user.email jan.oberhauser@gmail.com
git merge --ff n8n@${{env.RELEASE}}
git push origin master
git push origin :${{github.event.pull_request.base.ref}}
# - name: Merge Release into 'master'
# run: |
# git fetch origin
# git checkout --track origin/master
# git config user.name "Jan Oberhauser"
# git config user.email jan.oberhauser@gmail.com
# git merge --ff n8n@${{env.RELEASE}}
# git push origin master
# git push origin :${{github.event.pull_request.base.ref}}