Skip to content

Prepare new release #95

Prepare new release

Prepare new release #95

Workflow file for this run

name: "Prepare new release"
on:
workflow_dispatch:
inputs:
version:
description: "The version you want to release."
required: true
jobs:
prepare-release:
name: Prepare release
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
- name: Setup Yarn
uses: volta-cli/action@v4
- name: Setup env
run: echo "FONTAWESOME_NPM_AUTH_TOKEN=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" > .env
- name: Create release branch
run: git checkout -b release/${{ github.event.inputs.version }}
- name: Initialize mandatory git config
uses: fregante/setup-git-user@v2
- name: Bump version in package.json
run: yarn version ${{ github.event.inputs.version }}
- name: Commit manifest files
id: make-commit
run: |
git add package.json
git commit --message "Prepare release ${{ github.event.inputs.version }}"
echo "::set-output name=commit::$(git rev-parse HEAD)"
- name: Publish release branch
run: git push origin release/${{ github.event.inputs.version }}
- name: Merge release into main branch
uses: thomaseizinger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
head: release/${{ github.event.inputs.version }}
base: main
title: Merge release/${{ github.event.inputs.version }} into main branch
- name: Merge release into develop branch
uses: thomaseizinger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
head: release/${{ github.event.inputs.version }}
base: develop
title: Merge release/${{ github.event.inputs.version }} into develop branch