-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.04 KB
/
release.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
name: Release
on: workflow_dispatch
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-20.04
steps:
- name: Checkout Source Code
uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Yarn
run: corepack enable |
corepack prepare [email protected] --activate
# Yarn dependencies cannot be cached until yarn is installed
# WORKAROUND: https://github.com/actions/setup-node/issues/531
- name: Extract Cached Dependencies
uses: actions/setup-node@v3
with:
cache: yarn
- name: Install Dependencies
run: yarn --immutable
- name: Set Git user to Actions Bot
run: |
git config --local user.name 'github-actions[bot]'
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
- name: Run Release
run: yarn release-it --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}