Skip to content

Commit 7e48d7f

Browse files
Merge pull request #74 from Shopify/update-javascript-branch-workflow
Fix update-javascript-branch workflow
2 parents 6d2204c + 99482ce commit 7e48d7f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/update-javascript-branch.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create a PR to keep JavaScript branch up to date with main
1+
name: Update JavaScript branch
22

33
on:
44
push:
@@ -23,10 +23,11 @@ jobs:
2323
uses: actions/setup-node@v5
2424
with:
2525
node-version: 20.x
26-
cache: 'pnpm'
2726

2827
- name: Install dependencies
29-
run: pnpm add -D @shopify/eslint-plugin
28+
run: |
29+
pnpm install
30+
pnpm add -D @shopify/eslint-plugin
3031
3132
- name: Create temporary tsconfig file for transpilation
3233
run: |
@@ -92,7 +93,7 @@ jobs:
9293
git checkout -b temp_javascript_updates
9394
git commit -m "Convert template to Javascript"
9495
git checkout javascript || git checkout -b javascript
95-
git pull origin javascript || true
96+
git pull origin javascript || echo "No remote javascript branch yet"
9697
git checkout -
9798
git rebase -m -X theirs javascript
9899
git push -f origin temp_javascript_updates:javascript_updates

0 commit comments

Comments
 (0)