-
Notifications
You must be signed in to change notification settings - Fork 203
41 lines (35 loc) · 920 Bytes
/
bump_version.yml
File metadata and controls
41 lines (35 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Bump Version
on:
workflow_dispatch:
inputs:
version:
description: "Version (optional)"
required: false
default: "minor"
jobs:
build:
name: Bump Version
runs-on: ubuntu-latest
steps:
- name: ⇣ Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_BUILDER_TOKEN }}
- name: Use Node.js 16.10
uses: actions/setup-node@v3
with:
node-version: "16.10"
- name: Setup git
run: |
set -ex
git config --global user.email "builder+skip-ci@codota.com"
git config --global user.name "codota-builder"
- name: Run npm version
run: |
set -e
NEW_VERSION="${{ github.event.inputs.version }}"
npm version $NEW_VERSION
- name: Push Changes
run: |
set -ex
git push origin HEAD --tags