Skip to content

Commit d29e8c2

Browse files
committed
chore(ci): fix versions and labels
1 parent fc90a4f commit d29e8c2

File tree

4 files changed

+22
-36
lines changed

4 files changed

+22
-36
lines changed

.github/actions/install/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ inputs:
55
node_version:
66
description: Pnpm version to use
77
required: true
8+
default: 22.x
89
pnpm_version:
910
description: Node version to use
1011
required: true
@@ -13,7 +14,7 @@ runs:
1314
using: composite
1415
steps:
1516
- name: 🏗️ Setup pnpm ${{ inputs.pnpm_version }}
16-
uses: pnpm/action-setup@v2
17+
uses: pnpm/action-setup@v4
1718
with:
1819
version: ${{ inputs.pnpm_version }}
1920

.github/workflows/build.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 🚧 Build - Build sources
1+
name: 🚧 Build
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
@@ -10,10 +10,6 @@ on:
1010
pull_request:
1111
workflow_dispatch:
1212

13-
env:
14-
node_version: 22.x
15-
pnpm_version: 9.x
16-
1713
jobs:
1814
build:
1915
name: 🚧 Build
@@ -36,9 +32,6 @@ jobs:
3632

3733
- name: 🧱 Install
3834
uses: ./.github/actions/install
39-
with:
40-
node_version: ${{ env.node_version }}
41-
pnpm_version: ${{ env.pnpm_version }}
4235

4336
- name: 🧪 Unit tests
4437
run: |
@@ -55,9 +48,6 @@ jobs:
5548

5649
- name: 🧱 Install
5750
uses: ./.github/actions/install
58-
with:
59-
node_version: ${{ env.node_version }}
60-
pnpm_version: ${{ env.pnpm_version }}
6151

6252
- name: 🧹 Lint
6353
run: |

.github/workflows/publish.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ☁️ Publish - npm Publish and Github Release
1+
name: ☁️ Publish
22

33
on:
44
workflow_call:
@@ -11,18 +11,20 @@ on:
1111
description: Tag name
1212
required: false
1313
type: string
14-
skip-npm:
15-
description: Skip npm publish
14+
workflow_dispatch:
15+
inputs:
16+
commit-hash:
17+
description: Commit to checkout
1618
required: false
17-
type: boolean
18-
19-
env:
20-
node_version: 20.x
21-
pnpm_version: 8.x
19+
type: string
20+
tag-name:
21+
description: Tag name
22+
required: false
23+
type: string
2224

2325
jobs:
2426
publish-npm:
25-
name: ☁️ Publish npm
27+
name: ☁️ Publish
2628
runs-on: ubuntu-latest
2729

2830
steps:
@@ -34,14 +36,15 @@ jobs:
3436

3537
- name: 🚧 Build
3638
uses: ./.github/actions/build
37-
with:
38-
node_version: ${{ env.node_version }}
39-
pnpm_version: ${{ env.pnpm_version }}
4039

41-
- name: ☁️ Publish to npm
42-
if: ${{ inputs.skip-npm != true }}
40+
- name: ☁️ Publish
4341
env:
4442
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4543
run: |
46-
# ================= ☁️ Publish to npm =================
44+
# ================= ☁️ Publish =================
45+
# Check status
46+
git status
47+
git diff --color -U0 | cat
48+
49+
# Publish
4750
pnpm publish

.github/workflows/release.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 📦 Release - Tag, Release and Publish
1+
name: 📦 Release
22

33
concurrency:
44
group: ${{ github.workflow }}-${{ github.ref }}
@@ -16,10 +16,6 @@ on:
1616
required: false
1717
type: boolean
1818

19-
env:
20-
node_version: 20.x
21-
pnpm_version: 8.x
22-
2319
jobs:
2420
release:
2521
name: 📦 Tag and release commit
@@ -39,9 +35,6 @@ jobs:
3935

4036
- name: 🧱 Install
4137
uses: ./.github/actions/install
42-
with:
43-
node_version: ${{ env.node_version }}
44-
pnpm_version: ${{ env.pnpm_version }}
4538

4639
- name: 🏷️ Release
4740
run: |
@@ -83,4 +76,3 @@ jobs:
8376
with:
8477
commit-hash: ${{ needs.release.outputs.commit-hash }}
8578
tag-name: ${{ inputs.tag-name || needs.release.outputs.tag-name }}
86-
skip-npm: ${{ inputs.skip-npm }}

0 commit comments

Comments
 (0)