Skip to content

Commit 9ba0890

Browse files
committed
Fix Node version failure in publish workflow
Looks like the images got updated to v18 so they started failing. For npm install v16 and for Docker just run the script directly, it seems silly to waste time installing v16 just to run a script through yarn.
1 parent d477972 commit 9ba0890

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/publish.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
- name: Checkout code-server
3030
uses: actions/checkout@v3
3131

32+
- name: Install Node.js v16
33+
uses: actions/setup-node@v3
34+
with:
35+
node-version: "16"
36+
cache: "yarn"
37+
3238
- name: Download npm package from release artifacts
3339
uses: robinraju/[email protected]
3440
with:
@@ -141,7 +147,7 @@ jobs:
141147
VERSION: ${{ env.VERSION }}
142148
run: |
143149
git checkout -b update-version-${{ env.VERSION }}
144-
git add .
150+
git add .
145151
git commit -m "chore: updating version to ${{ env.VERSION }}"
146152
git push -u origin $(git branch --show)
147153
gh pr create --repo coder/code-server-aur --title "chore: bump version to ${{ env.VERSION }}" --body "PR opened by @$GITHUB_ACTOR" --assignee $GITHUB_ACTOR
@@ -186,7 +192,7 @@ jobs:
186192
out-file-path: "release-packages"
187193

188194
- name: Publish to Docker
189-
run: yarn publish:docker
195+
run: ./ci/steps/docker-buildx-push.sh
190196
env:
191197
VERSION: ${{ env.VERSION }}
192198
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)