forked from n8n-io/n8n
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Update release process to support
major
releases (no-changelog) (…
- Loading branch information
Showing
4 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,37 +35,33 @@ jobs: | |
fetch-depth: 0 | ||
ref: ${{ github.event.inputs.base-branch }} | ||
|
||
- name: Push the base branch | ||
run: | | ||
git checkout -b "release/${{ github.event.inputs.release-type }}" | ||
git push -f origin "release/${{ github.event.inputs.release-type }}" | ||
- uses: pnpm/[email protected] | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
|
||
- run: npm install --prefix=.github/scripts --no-package-lock | ||
|
||
- name: Bump package versions | ||
run: | | ||
echo "NEXT_RELEASE=$(node .github/scripts/bump-versions.mjs)" >> $GITHUB_ENV | ||
pnpm i --lockfile-only | ||
env: | ||
RELEASE_TYPE: ${{ github.event.inputs.release-type }} | ||
|
||
- name: Update Changelog | ||
run: node .github/scripts/update-changelog.mjs | ||
|
||
- name: Push the base branch | ||
run: | | ||
git push -f origin refs/remotes/origin/${{ github.event.inputs.base-branch }}:refs/heads/release/${{ env.NEXT_RELEASE }} | ||
- name: Push the release branch, and Create the PR | ||
uses: peter-evans/create-pull-request@v4 | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
base: 'release/${{ github.event.inputs.release-type }}' | ||
branch: 'release/${{ env.NEXT_RELEASE }}' | ||
base: 'release/${{ env.NEXT_RELEASE }}' | ||
branch: '${{ env.NEXT_RELEASE }}-pr' | ||
commit-message: ':rocket: Release ${{ env.NEXT_RELEASE }}' | ||
delete-branch: true | ||
labels: 'release' | ||
title: ':rocket: Release ${{ env.NEXT_RELEASE }}' | ||
# 'TODO: add generated changelog to the body. create a script to generate custom changelog' | ||
body: '' | ||
|
||
# TODO: post PR link to slack | ||
body-path: 'CHANGELOG-${{ env.NEXT_RELEASE }}.md' |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ packages/**/.turbo | |
cypress/videos/* | ||
cypress/screenshots/* | ||
*.swp | ||
CHANGELOG-*.md |