generated from tiramisulabs/monorepo
-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (38 loc) · 1.17 KB
/
check.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
name: Build, Lint, Format & Publish
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run Turbo
run: pnpm run check
id: turbo
- name: Commit and Push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add -A
if ! git diff-index --quiet HEAD; then
git commit -m "chore: apply formatting"
git push origin HEAD:${{ github.ref }}
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUSKY: 0
- name: Publish in pkg.pr.new
run: pnpx pkg-pr-new publish './packages/*'
if: github.repository == 'tiramisulabs/extra'