generated from un-ts/lib-boilerplate
-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.16 KB
/
release-beta.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
name: Release beta
on:
pull_request:
branches:
- main
- '!changeset-release/**'
workflow_dispatch:
inputs:
version:
description: specified version to be released
required: true
tag:
description: optional specified npm tag to be released
jobs:
release_beta:
name: Release Beta
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: yarn
- name: Install dependencies
run: yarn --immutable
- name: Set git info
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Release beta
run: yarn release:beta
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PREVERSION_VERSION: ${{ github.event.inputs.version }}
PREVERSION_TAG: ${{ github.event.inputs.tag }}