-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 965 Bytes
/
major.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
# create major from 'prod' branch
name: BES_MAJOR
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18.x ]
environment: github_actions_bes
steps:
- name: Git checkout
uses: actions/checkout@v3
with:
ref: 'prod'
token: ${{ secrets.GH_ACTIONS_TOKEN }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Minor
run: |
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git config --global user.name 'github-actions[bot]'
git fetch --all
git checkout main
npm version major
git branch -f prod
git push origin main prod --tags