Skip to content

Commit

Permalink
feat: update workflow install deno action
Browse files Browse the repository at this point in the history
  • Loading branch information
redabacha committed Oct 9, 2024
1 parent 1954f5b commit d4004f3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ jobs:
working-directory: ./scripts/deployment-test

- name: 🦕 Install Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: vx.x.x
deno-version: v2.x
- name: 🦕 Deno Deploy CLI
run: deno install --allow-read --allow-write --allow-env --allow-net --allow-run --no-check -r -f https://deno.land/x/deploy/deployctl.ts
run: deno install -Arf jsr:@deno/deployctl

- name: 🚀 Deploy to Deno Deploy
run: node ./deno-deploy.mjs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
cache: "pnpm"

- name: 🦕 Install Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: vx.x.x
deno-version: v2.x

- name: 📥 Install deps
run: pnpm install --frozen-lockfile
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
cache: "pnpm"

- name: 🦕 Install Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: vx.x.x
deno-version: v2.x

- name: Disable GitHub Actions Annotations
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/shared-test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ jobs:
cache: "pnpm"

- name: 🦕 Install Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: vx.x.x
deno-version: v2.x

- name: Disable GitHub Actions Annotations
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/shared-test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
cache: "pnpm"

- name: 🦕 Install Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: vx.x.x
deno-version: v2.x

- name: Disable GitHub Actions Annotations
run: |
Expand Down
10 changes: 5 additions & 5 deletions scripts/deployment-test/deno-deploy.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ let PROJECT_DIR = getAppDirectory(APP_NAME);
try {
// create a new remix app
spawnSync(
"npx",
"deno",
"-A",
[
"--yes",
"create-remix@latest",
"npm:create-remix@latest",
PROJECT_DIR,
"--template",
"deno",
Expand All @@ -41,8 +41,8 @@ try {
});

// install deps
spawnSync("npm", ["install"], spawnOpts);
spawnSync("npm", ["run", "build"], spawnOpts);
spawnSync("deno", ["install"], spawnOpts);
spawnSync("deno", ["task", "build"], spawnOpts);

// deploy to deno deploy
// note we dont have to install deployctl here as we do it ahead of time in the deployments workflow
Expand Down

0 comments on commit d4004f3

Please sign in to comment.