Skip to content

Commit d97caba

Browse files
committed
fix: Fix YAML syntax error - quote step names with colons
- Wrapped all step names containing colons in quotes - Fixes GitHub Actions YAML syntax error on line 21 - YAML requires quotes when values contain special characters like colons
1 parent 71392e5 commit d97caba

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ jobs:
1818
id-token: write
1919

2020
steps:
21-
- name: Step 0: Checkout code
21+
- name: "Step 0: Checkout code"
2222
uses: actions/checkout@v4
2323
with:
2424
fetch-depth: 0
2525
token: ${{ secrets.GITHUB_TOKEN }}
2626

27-
- name: Step 0: Setup Node.js
27+
- name: "Step 0: Setup Node.js"
2828
uses: actions/setup-node@v4
2929
with:
3030
node-version: '20.x'
3131
cache: 'npm'
3232
cache-dependency-path: 'scripts/package-lock.json'
3333

34-
- name: Step 0: Install dependencies
34+
- name: "Step 0: Install dependencies"
3535
working-directory: ./scripts
3636
run: |
3737
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@@ -42,7 +42,7 @@ jobs:
4242
echo "✅ Dependencies installed successfully"
4343
4444
# Step 1: Run tests
45-
- name: Step 1: Run Tests
45+
- name: "Step 1: Run Tests"
4646
working-directory: ./scripts
4747
run: |
4848
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@@ -53,7 +53,7 @@ jobs:
5353
echo "✅ Tests completed successfully"
5454
5555
# Step 2: Check test coverage for new functions
56-
- name: Step 2: Check Test Coverage
56+
- name: "Step 2: Check Test Coverage"
5757
working-directory: ./scripts
5858
run: |
5959
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@@ -67,7 +67,7 @@ jobs:
6767
echo "✅ Coverage check completed"
6868
6969
# Step 3: Get version from package.json
70-
- name: Step 3: Get Version
70+
- name: "Step 3: Get Version"
7171
id: version
7272
run: |
7373
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@@ -79,7 +79,7 @@ jobs:
7979
echo "✅ Detected version: $VERSION"
8080
8181
# Step 4: Check if tag already exists
82-
- name: Step 4: Check if Tag Exists
82+
- name: "Step 4: Check if Tag Exists"
8383
id: check_tag
8484
run: |
8585
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@@ -96,7 +96,7 @@ jobs:
9696
fi
9797
9898
# Step 5: Generate minified file
99-
- name: Step 5: Generate Minified File
99+
- name: "Step 5: Generate Minified File"
100100
if: steps.check_tag.outputs.exists == 'false'
101101
working-directory: ./scripts
102102
run: |
@@ -108,7 +108,7 @@ jobs:
108108
echo "✅ Minified file created: phantom.min.js"
109109
110110
# Step 6: Create release package
111-
- name: Step 6: Create Release Package
111+
- name: "Step 6: Create Release Package"
112112
if: steps.check_tag.outputs.exists == 'false'
113113
working-directory: ./scripts
114114
run: |
@@ -120,7 +120,7 @@ jobs:
120120
echo "✅ Release package created successfully"
121121
122122
# Step 7: Create Git tag
123-
- name: Step 7: Create Git Tag
123+
- name: "Step 7: Create Git Tag"
124124
if: steps.check_tag.outputs.exists == 'false'
125125
run: |
126126
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@@ -136,7 +136,7 @@ jobs:
136136
echo "✅ Tag $TAG created and pushed successfully"
137137
138138
# Step 8: Generate release notes automatically
139-
- name: Step 8: Generate Release Notes
139+
- name: "Step 8: Generate Release Notes"
140140
if: steps.check_tag.outputs.exists == 'false'
141141
id: release_notes
142142
working-directory: ./scripts
@@ -159,7 +159,7 @@ jobs:
159159
echo "✅ Release notes generated successfully"
160160
161161
# Step 9: Create GitHub Release
162-
- name: Step 9: Create GitHub Release
162+
- name: "Step 9: Create GitHub Release"
163163
if: steps.check_tag.outputs.exists == 'false'
164164
uses: softprops/action-gh-release@v1
165165
with:
@@ -173,7 +173,7 @@ jobs:
173173
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
174174

175175
# Step 10: Summary
176-
- name: Step 10: Pipeline Summary
176+
- name: "Step 10: Pipeline Summary"
177177
run: |
178178
echo ""
179179
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"

0 commit comments

Comments
 (0)