-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.16 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
43
44
45
46
47
48
49
50
51
name: release
on:
push:
paths:
- ".changeset/**"
- ".github/**"
- "packages/**"
- "package.json"
- "package-lock.json"
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: npm
- name: Install pango for NPM package "canvas"
run: sudo apt-get update && sudo apt-get install -y libpango1.0-dev
- name: Install dependencies
run: npm ci
- name: Create environment file
run: printenv > .env
env:
DEBUG: "false"
LOCAL_DOWNLOAD: "false"
- name: Build packages
run: npm run build
- name: Create Release Pull Request or Publish Packages
id: changesets
uses: changesets/action@v1
with:
version: npx changeset version
publish: npx changeset publish
commit: "chore(release): version packages"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}