Skip to content

Commit 272f54c

Browse files
author
codewec
committed
chore: gh actions
1 parent e804c37 commit 272f54c

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: ci
22

3-
on: push
3+
on:
4+
pull_request:
5+
push:
6+
branches-ignore:
7+
- main
8+
tags-ignore:
9+
- '*'
410

511
jobs:
612
ci:

.github/workflows/docker-publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,32 @@ permissions:
1212
packages: write
1313

1414
jobs:
15+
ci:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v6
20+
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
24+
- name: Install Node.js
25+
uses: actions/setup-node@v6
26+
with:
27+
node-version: 22
28+
cache: pnpm
29+
30+
- name: Install dependencies
31+
run: pnpm install --frozen-lockfile
32+
33+
- name: Lint
34+
run: pnpm run lint
35+
36+
- name: Typecheck
37+
run: pnpm run typecheck
38+
1539
publish-dev:
40+
needs: ci
1641
if: github.ref == 'refs/heads/main'
1742
runs-on: ubuntu-latest
1843
steps:
@@ -46,6 +71,7 @@ jobs:
4671
labels: ${{ steps.meta.outputs.labels }}
4772

4873
publish-release:
74+
needs: ci
4975
if: startsWith(github.ref, 'refs/tags/')
5076
runs-on: ubuntu-latest
5177
steps:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "editoro",
3+
"version": "1.0.1",
34
"private": true,
45
"type": "module",
56
"scripts": {

0 commit comments

Comments
 (0)