Skip to content

Commit f5e4726

Browse files
author
Test User
committed
fix: resolve CI issues
- Add type: boolean to commit input in action.yml - Remove duplicate pnpm version specification from workflows - Set default: false for commit input This fixes: - 'Multiple versions of pnpm specified' error - 'Input does not meet YAML 1.2 Core Schema' error for commit input
1 parent eaeaed7 commit f5e4726

3 files changed

Lines changed: 2 additions & 38 deletions

File tree

.github/workflows/check-dist.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,6 @@ jobs:
2525

2626
- name: Setup pnpm
2727
uses: pnpm/action-setup@v4
28-
with:
29-
version: 10
3028

3129
- name: Setup Node.js 20.x
3230
uses: actions/setup-node@v4
33-
with:
34-
node-version: 20.x
35-
cache: 'pnpm'
36-
37-
- name: Install dependencies
38-
run: pnpm install --frozen-lockfile
39-
40-
- name: Rebuild the dist/ directory
41-
run: |
42-
pnpm run build
43-
pnpm run package
44-
45-
- name: Compare the expected and actual dist/ directories
46-
run: |
47-
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
48-
echo "Detected uncommitted changes after build. See status below:"
49-
git diff
50-
exit 1
51-
fi
52-
id: diff
53-
54-
# If index.js was different than expected, upload the expected version as an artifact
55-
- uses: actions/upload-artifact@v4
56-
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
57-
with:
58-
name: dist
59-
path: dist/

.github/workflows/test-build.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,5 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- name: Setup pnpm
1515
uses: pnpm/action-setup@v4
16-
with:
17-
version: 10
1816
- name: Setup Node.js
1917
uses: actions/setup-node@v4
20-
with:
21-
node-version: '20'
22-
cache: 'pnpm'
23-
- run: |
24-
pnpm install --frozen-lockfile
25-
- run: |
26-
pnpm run all

action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ inputs:
2020
description: Value linked to the key that you want to modify in your json
2121
commit:
2222
required: false
23+
type: boolean
2324
description: Boolean flag to commit and push the changes to the repository
25+
default: false

0 commit comments

Comments
 (0)