-
Notifications
You must be signed in to change notification settings - Fork 99
44 lines (34 loc) · 976 Bytes
/
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
43
44
name: Release
on:
push:
branches: [main]
jobs:
release:
if: github.repository == 'toss/es-hangul'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version-file: '.nvmrc'
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build
- name: Type Check
run: yarn typecheck
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
title: 'chore: version packages'
commit: 'chore: version packages'
version: yarn changeset:version
publish: yarn changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}