Skip to content

Commit da5b3e3

Browse files
committed
ci: update workflows
1 parent 6d3308e commit da5b3e3

File tree

2 files changed

+10
-38
lines changed

2 files changed

+10
-38
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
name: checks
2+
23
on:
3-
- push
4-
- pull_request
5-
- workflow_call
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_call:
8+
69
jobs:
10+
checks:
11+
uses: Julien-R44/.github/.github/workflows/checks.yml@main
712
test:
813
uses: Julien-R44/.github/.github/workflows/test.yml@main
9-
lint:
10-
uses: Julien-R44/.github/.github/workflows/lint.yml@main
11-
typecheck:
12-
uses: Julien-R44/.github/.github/workflows/typecheck.yml@main

.github/workflows/release.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,34 +13,5 @@ jobs:
1313

1414
release:
1515
needs: checks
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v4
19-
with:
20-
fetch-depth: 0
21-
22-
- name: Setup pnpm
23-
uses: pnpm/action-setup@v4
24-
25-
- name: Setup Node.js
26-
uses: actions/setup-node@v4
27-
with:
28-
node-version: 22
29-
cache: pnpm
30-
registry-url: 'https://registry.npmjs.org'
31-
32-
- name: Git config
33-
run: |
34-
git config user.name "${GITHUB_ACTOR}"
35-
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
36-
37-
- run: corepack enable && npm i -g npm@11
38-
39-
- name: Install dependencies
40-
run: pnpm install
41-
42-
- name: Release
43-
run: pnpm release
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
16+
uses: Julien-R44/.github/.github/workflows/release.yml@main
17+
secrets: inherit

0 commit comments

Comments
 (0)