-
Notifications
You must be signed in to change notification settings - Fork 110
28 lines (28 loc) · 793 Bytes
/
Copy pathci.yml
File metadata and controls
28 lines (28 loc) · 793 Bytes
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
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: Linux
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: '22'
- name: apt-get install
run: sudo apt-get update && sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
- run: corepack enable
- run: yarn
- run: yarn test
- name: yarn semantic-release
if: github.ref == 'refs/heads/master'
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn semantic-release