-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (40 loc) · 1.3 KB
/
bump-versions.yml
File metadata and controls
51 lines (40 loc) · 1.3 KB
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
42
43
44
45
46
47
48
49
50
51
name: Bump Versions
run-name: Bump versions on ${{ github.head_ref || github.ref_name }} to ${{ github.event.inputs.newVersion }}
on:
workflow_dispatch:
inputs:
newVersion:
description: "Version to bump all the repo's versions to on a new branch (called `bump-versions-<version>`), e.g. 0.3.0-alpha.0."
required: true
jobs:
bump-versions:
name: Bump versions on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
permissions:
contents: write
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Output Workflow Dispatch Inputs
run: echo "${{ toJSON(github.event.inputs) }}"
- name: Checkout git repo
uses: actions/checkout@v4
- name: Read package.json
id: package_json
uses: zoexx/github-action-json-file-properties@1.0.6
with:
file_path: 'package.json'
- name: Install Node and NPM
uses: actions/setup-node@v4
with:
cache: npm
node-version: ${{ fromJson(steps.package_json.outputs.volta).node }}
- name: Install packages
run: |
npm ci
- name: Bump repo versions
if: ${{ inputs.newVersion != '' }}
uses: ./.github/actions/bump-versions-action
with:
newVersion: ${{ inputs.newVersion }}