generated from tomchen/example-typescript-package
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1017 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
45
46
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Releasing
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Use pnpm
uses: pnpm/action-setup@v3
with:
version: 9.11.0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Build package
run: pnpm run build
- name: Run type checking
run: pnpm run typecheck
- name: Run linting
run: pnpm run lint
- name: Create Release Pull Request / Publish Package
uses: changesets/action@v1
with:
publish: pnpm run release
version: pnpm run version-packages
commit: 'chore: release package'
title: 'chore: release package'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}