Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit c278851

Browse files
authored
feat!: bump denoland/setup-deno@v1 -> denoland/setup-deno@v2 (#20)
Now defaults to Deno 2. You can still use Deno 1 via e.g. ```yaml - uses: nekowinston/setup-deno@v2 with: deno-version: "1.8.2" ```
1 parent f62136e commit c278851

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### Deno Setup action with integrated cache.
66

77
- Based on:
8-
- [`denoland/setup-deno@v1`](https://github.com/denoland/setup-deno),
8+
- [`denoland/setup-deno@v2`](https://github.com/denoland/setup-deno),
99
- [`actions/cache@v4`](https://github.com/actions/cache)
1010
- Handles restoring and caching to `DENO_DIR` for you.
1111
- Annotates your source code from `deno lint --compact` output.\
@@ -17,15 +17,15 @@
1717
#### Basic:
1818

1919
```yaml
20-
- uses: nekowinston/setup-deno@v1
20+
- uses: nekowinston/setup-deno@v2
2121
```
2222
2323
#### All options:
2424
2525
```yaml
26-
- uses: nekowinston/setup-deno@v1
26+
- uses: nekowinston/setup-deno@v2
2727
with:
28-
deno-version: "~1.38"
28+
deno-version: "~2.2"
2929
deno-json-path: ./subdirectory/deno.json
3030
deno-lock-path: ./subdirectory/deno.lock
3131
directory: ./subdirectory
@@ -35,7 +35,7 @@
3535
- `deno-version`:\
3636
The Deno version to install. Can be a semver version of a stable release, `'canary'` for the latest canary, or the Git hash of a specific canary release.\
3737
See [`setup-deno`](https://github.com/marketplace/actions/setup-deno) for examples.\
38-
Defaults to `1.x`.
38+
Defaults to `2.x`.
3939
- `deno-json-path`:\
4040
The path to the Deno config file to use for caching.\
4141
Defaults to an empty string, using the built-in CLI default.

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ branding:
77
inputs:
88
deno-version:
99
description: "The Deno version to install. Can be a semver version of a stable release, 'canary' for the latest canary, or the Git hash of a specific canary release."
10-
default: "1.x"
10+
default: "2.x"
1111
deno-json-path:
1212
description: "The path to the Deno config file to use for caching. Defaults to an empty string, using the built-in CLI default (`deno.json` and `deno.jsonc`)."
1313
default: ""
@@ -34,7 +34,7 @@ runs:
3434
steps:
3535
- name: Setup Deno
3636
id: setup-deno
37-
uses: denoland/setup-deno@v1.1.4
37+
uses: denoland/setup-deno@v2.0.2
3838
with:
3939
deno-version: ${{ inputs.deno-version }}
4040

0 commit comments

Comments
 (0)