-
Notifications
You must be signed in to change notification settings - Fork 107
56 lines (50 loc) · 1.26 KB
/
Copy pathversion-beta.yaml
File metadata and controls
56 lines (50 loc) · 1.26 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
52
53
54
55
56
name: Version beta
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
default: 'prepatch'
type: choice
options:
- prepatch
- preminor
- prerelease
- premajor
preid:
description: 'Tag'
required: true
default: 'beta'
type: choice
options:
- beta
- alpha
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v3
with:
version: 10
run_install: true
- name: Lint and prettier
run: pnpm format
- name: Version
run: pnpm lerna version ${{ github.event.inputs.version }} --preid ${{ github.event.inputs.preid }} --yes
env:
GIT_AUTHOR_NAME: 'Bot'
GIT_AUTHOR_EMAIL: 'bot@gorules.io'
GIT_COMMITTER_NAME: 'Bot'
GIT_COMMITTER_EMAIL: 'bot@gorules.io'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}