-
Notifications
You must be signed in to change notification settings - Fork 1.7k
41 lines (41 loc) · 1.17 KB
/
version.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
name: Create New Release Branch
on:
workflow_dispatch:
inputs:
increment:
description: 'Version Increment'
required: true
default: 'prerelease'
type: choice
options:
- prerelease
- patch
- minor
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_KEY }}
fetch-depth: 0
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- run: |
git config user.name "Lexical GitHub Actions Bot"
git config user.email "<>"
- run: npm install
- id: latest
uses: pozetroninc/github-action-get-latest-release@master
with:
owner: facebook
repo: lexical
excludes: draft
- run: LATEST_RELEASE=${{ steps.latest.outputs.release }} npm run increment-version -- --i $INCREMENT
env:
INCREMENT: ${{ inputs.increment }}
- run: npm install
- run: git push -u git@github.com:facebook/lexical.git --follow-tags