insomnia/.github/workflows/release-start.yml
Insomnia 51b9ef76e9
🚀 8.6.1 (#7014)
* Bump app version to 8.6.1

* feat(unit-tests): Unit test reordering (#7020)

* re-orderable test suites

* re-orderable tests

* fix ts

* Use db methods for sorting

* sort suites and unit tests in inso

* fix suite rename

* Fixes https://github.com/Kong/insomnia/issues/7011 (#7012)

* Fixes https://github.com/Kong/insomnia/issues/7009 (#7010)

* chore: edit changelog process [INS-3456] (#7001)

* fix(workspace): Add default name for when creating a workspace (#7046)

* Add default name for when creating a design/collection

* workspace update and creation

* fix filter history keys not being valid selectors (#7040)

* remove invalid wide css prop (#7041)

* feat(environment): update environments icons (#7050)

* update environments icons

* fix workspace name

* fix one line editor being scrollable (#7059)

* change 8.0 to 8 (#7061)

* Cleanup page containers and add hint container in the page (#7060)

* feat(pane-tabs): Consistent styles for tabs (#7062)

* response/request pane tab counts

* tab dropdown colors

* fix updates to db leading to errors in loader fetchers (#7033)

* feat(command-palette): add button to open the command palette (#7064)

* add button for quick search

* update button styles in project

* make it look good with gh stars

* fix ts issue

* changelog

---------

Co-authored-by: Jack Kavanagh <3679927+jackkav@users.noreply.github.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: Jeroen Van den Berghe <vandenberghe.jeroen@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
2024-02-06 12:16:54 +00:00

133 lines
4.8 KiB
YAML

name: Release Start
on:
workflow_dispatch:
inputs:
channel:
required: true
type: choice
description: Channel of the release (alpha/beta/stable)
options:
- alpha
- beta
- stable
version:
required: false
description: force version of the release (e.g. 2022.1.0)
jobs:
setup-release-branch:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: develop
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: 'npm'
cache-dependency-path: package-lock.json
- name: Install packages
run: npm ci
- name: App version (stable, no version doing patch)
if: github.event.inputs.channel == 'stable' && !github.event.inputs.version
run: npm --workspaces version patch
- name: App version (stable)
if: github.event.inputs.channel == 'stable' && github.event.inputs.version
run: npm --workspaces version "${{ github.event.inputs.version }}"
# required for 8.0.0 beta
- name: App version (initial alpha/beta where we specify a new general version)
if: github.event.inputs.channel != 'stable' && github.event.inputs.version
run: npm --workspaces version "${{ github.event.inputs.version }}-${{ github.event.inputs.channel }}.0"
- name: App version (alpha/beta)
if: github.event.inputs.channel != 'stable' && !github.event.inputs.version
run: npm --workspaces version --preid "${{ github.event.inputs.channel }}" prerelease
- name: Get version
shell: bash
run: |
echo "RELEASE_VERSION=$(node -e "console.log(require('./packages/insomnia/package.json').version)")" >> $GITHUB_ENV
echo "RELEASE_BRANCH=release/$(node -e "console.log(require('./packages/insomnia/package.json').version)")" >> $GITHUB_ENV
# - name: Git create branch locally # Check out the new branch
# run: git checkout -b ${{ env.RELEASE_BRANCH }}
- name: Create Branch # Create a branch if it doesn't exist
uses: peterjgrainger/action-create-branch@v2.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
branch: ${{ env.RELEASE_BRANCH }}
- name: Checkout branch
uses: actions/checkout@v3
with:
ref: ${{ env.RELEASE_BRANCH }}
persist-credentials: false
- name: Configure Git user
id: configure_git_user
uses: Homebrew/actions/git-user-config@master
with:
username: ${{ (github.event_name == 'workflow_dispatch' && github.actor) || 'insomnia-infra' }}
- name: (Re-run) App version (stable, no version doing patch)
if: github.event.inputs.channel == 'stable' && !github.event.inputs.version
run: npm --workspaces version patch
- name: (Re-run) App version (stable)
if: github.event.inputs.channel == 'stable' && github.event.inputs.version
run: npm --workspaces version "${{ github.event.inputs.version }}"
# required for 8.0.0 beta
- name: (Re-run) App version (initial alpha/beta where we specify a new general version)
if: github.event.inputs.channel != 'stable' && github.event.inputs.version
run: npm --workspaces version "${{ github.event.inputs.version }}-${{ github.event.inputs.channel }}.0"
- name: (Re-run) App version (alpha/beta)
if: github.event.inputs.channel != 'stable' && !github.event.inputs.version
run: npm --workspaces version --preid "${{ github.event.inputs.channel }}" prerelease
- name: Git Commit
run: git commit -am "Bump app version to ${{ env.RELEASE_VERSION }}"
- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.RELEASE_GH_TOKEN }}
tag: ${{ github.ref_name }}
- name: Git Commit Changelog
run: git commit -am "update CHANGELOG.md for ${{ env.RELEASE_VERSION }} [skip ci]"
- name: Git Push changes
run: |
remote_repo="https://${GITHUB_ACTOR}:${RELEASE_GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
git push "${remote_repo}" --follow-tags
env:
RELEASE_GH_TOKEN: ${{ secrets.RELEASE_GH_TOKEN }}
- name: Run the Action
uses: devops-infra/action-pull-request@v0.4.2
with:
github_token: ${{ secrets.RELEASE_GH_TOKEN }}
source_branch: ${{ env.RELEASE_BRANCH}}
target_branch: develop
title: ":rocket: ${{ env.RELEASE_VERSION}}"
body: |
**Automated pull request**
Artifacts build in progress...
draft: false