Skip to content

Version

Version #81

Workflow file for this run

name: Version
on:
workflow_dispatch:
inputs:
branch:
description: Please select the type to publish
required: true
type: choice
options:
- alpha
- beta
- rc
- latest
default: 'latest'
jobs:
update_version:
name: Update Version
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "today=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js 14.21.x
uses: actions/setup-node@v4
with:
node-version: 14.21.x
cache: 'yarn'
- name: Install dependencies
run: |
yarn config set strict-ssl false
yarn
- name: Update Version
run: yarn run v
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: Generate version and changelog
title: Release
body: Update the version and changelog of the package
branch: release/${{ steps.date.outputs.today }}
base: master