@@ -283,65 +283,6 @@ jobs:
283
283
name : npm-package
284
284
path : ./package.tar.gz
285
285
286
- npm :
287
- name : Publish npm package
288
- # the npm-package gets uploaded as an artifact in Build
289
- # so we need that to complete before this runs
290
- needs : build
291
- # This environment "npm" requires someone from
292
- # coder/code-server-reviewers to approve the PR before this job runs.
293
- environment : npm
294
- # Only run if PR comes from base repo or event is not a PR
295
- # Reason: forks cannot access secrets and this will always fail
296
- if : github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
297
- runs-on : ubuntu-20.04
298
- steps :
299
- - name : Checkout repo
300
- uses : actions/checkout@v3
301
-
302
- - name : Download artifact
303
- uses : actions/download-artifact@v3
304
- id : download
305
- with :
306
- name : " npm-package"
307
- path : release-npm-package
308
-
309
- - name : Run ./ci/steps/publish-npm.sh
310
- run : yarn publish:npm
311
- env :
312
- # NOTE@jsjoeio
313
- # This is because npm enforces semantic versioning
314
- # so it has to be a valid version. We only use this
315
- # to publish dev versions from prs
316
- # and beta versions from main.
317
- VERSION : " 0.0.0"
318
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
319
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
320
- # NOTE@jsjoeio
321
- # NPM_ENVIRONMENT intentionally not set here.
322
- # Instead, itis determined in publish-npm.sh script
323
- # using GITHUB environment variables
324
-
325
- - name : Comment npm information
326
- uses : marocchino/sticky-pull-request-comment@v2
327
- with :
328
- GITHUB_TOKEN : ${{ github.token }}
329
- header : npm-dev-build
330
- message : |
331
- ✨ code-server dev build published to npm for PR #${{ github.event.number }}!
332
- * _Last publish status_: success
333
- * _Commit_: ${{ github.event.pull_request.head.sha }}
334
-
335
- To install in a local project, run:
336
- ```shell-session
337
- npm install @coder/code-server-pr@${{ github.event.number }}
338
- ```
339
-
340
- To install globally, run:
341
- ```shell-session
342
- npm install -g @coder/code-server-pr@${{ github.event.number }}
343
- ```
344
-
345
286
test-e2e :
346
287
name : Run e2e tests
347
288
needs : build
@@ -455,7 +396,7 @@ jobs:
455
396
if : steps.caddy-cache.outputs.cache-hit != 'true'
456
397
run : |
457
398
gh release download v2.5.2 --repo caddyserver/caddy --pattern "caddy_2.5.2_linux_amd64.tar.gz"
458
- mkdir -p ~/.cache/caddy
399
+ mkdir -p ~/.cache/caddy
459
400
tar -xzf caddy_2.5.2_linux_amd64.tar.gz --directory ~/.cache/caddy
460
401
461
402
- name : Start Caddy
0 commit comments