-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nodejs.yml
56 lines (48 loc) · 1.45 KB
/
nodejs.yml
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
52
53
54
55
56
name: Bump version
on:
workflow_dispatch:
inputs:
channel:
type: choice
default: stable
description: Pick channel
options:
- alpha
- beta
- stable
new-build-for-prerelease:
type: boolean
default: true
description: New build for prerelease
jobs:
bump-version:
name: Bump version
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Setup node
uses: actions/[email protected]
- name: Get next version
uses: MiguelRipoll23/[email protected]
id: get-next-version
with:
channel: ${{ inputs.channel }}
- name: Update version
run: |
npm version --no-git-tag-version ${{ env.NEXT_VERSION }}
env:
NEXT_VERSION: ${{ steps.get-next-version.outputs.next-version }}
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
branch: version/${{ steps.get-next-version.outputs.next-version }}
commit-message: ${{ steps.get-next-version.outputs.next-version }}
title:
Bump version to ${{ steps.get-next-version.outputs.next-version }}
body: Automated pull request triggered by a new release.
labels: new-release,ignore-for-release
draft: true