This repository has been archived by the owner on Dec 9, 2023. It is now read-only.
Bump version #1
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
name: Bump version | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Semver type of new version (major / minor / patch)' | |
required: true | |
type: choice | |
options: | |
- major | |
- minor | |
- patch | |
jobs: | |
bump-version: | |
name: Bump version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Setup Git | |
run: | | |
git config user.name 'Willin Wang' | |
git config user.email '[email protected]' | |
- name: bump version | |
run: npm version ${{ github.event.inputs.version }} | |
- name: Push latest version | |
run: git push origin main --follow-tags |