5 Commits

Author SHA1 Message Date
Luca Casonato
fa660b328d 1.4.1 (#69) 2024-09-03 10:36:21 +02:00
Luca Casonato
cce4306590 Don't put file versions at the top 2024-09-02 15:46:47 +02:00
Leo Kettmeir
916edb9a40 1.4.0 (#68) 2024-08-21 10:32:07 -07:00
Leo Kettmeir
b8a676db36 fix: use dl.deno.land for downloading binaries (#67) 2024-08-21 10:24:39 -07:00
Leo Kettmeir
ba9dcf3bc3 1.3.0 (#66) 2024-07-12 04:38:48 -07:00
7 changed files with 34 additions and 20 deletions

View File

@@ -26,7 +26,14 @@ jobs:
- name: Test Deno
run: deno run https://deno.land/std@0.198.0/examples/welcome.ts
- name: Test `deno install`
- name: Test `deno install -g` (2.0)
if: matrix.deno == 'canary' || matrix.deno == 'latest'
run: |
deno install -g --allow-net -n deno_curl https://deno.land/std@0.198.0/examples/curl.ts
deno_curl https://deno.land/std@0.198.0/examples/curl.ts
- name: Test `deno install (1.0)
if: matrix.deno == '1.x' || matrix.deno == '1.33.1' || matrix.deno == '~1.32' || matrix.deno == 'b290fd01f3f5d32f9d010fc719ced0240759c049'
run: |
deno install --allow-net -n deno_curl https://deno.land/std@0.198.0/examples/curl.ts
deno_curl https://deno.land/std@0.198.0/examples/curl.ts

1
CODEOWNERS Normal file
View File

@@ -0,0 +1 @@
* @lucacasonato

View File

@@ -4,20 +4,6 @@ Set up your GitHub Actions workflow with a specific version of Deno.
## Usage
### Version from file
```yaml
- uses: denoland/setup-deno@v1
with:
deno-version-file: .dvmrc
```
```yaml
- uses: denoland/setup-deno@v1
with:
deno-version-file: .tool-versions
```
### Latest stable for a major
```yaml
@@ -67,3 +53,23 @@ Targets the latest major, minor and patch version of Deno.
with:
deno-version: e7b7129b7a92b7500ded88f8f5baa25a7f59e56e
```
### Version from file
The extension can also automatically read the version file from
[`.tool-versions`](https://asdf-vm.com/manage/configuration.html#tool-versions)
```yaml
- uses: denoland/setup-deno@v1
with:
deno-version-file: .tool-versions
```
The extension can also automatically read the file from
[`dvm`](https://github.com/justjavac/dvm).
```yaml
- uses: denoland/setup-deno@v1
with:
deno-version-file: .dvmrc
```

2
node_modules/.package-lock.json generated vendored
View File

@@ -1,6 +1,6 @@
{
"name": "setup-deno",
"version": "1.3.0",
"version": "1.4.1",
"lockfileVersion": 3,
"requires": true,
"packages": {

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "setup-deno",
"version": "1.3.0",
"version": "1.4.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "setup-deno",
"version": "1.3.0",
"version": "1.4.1",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.10.0",

View File

@@ -1,7 +1,7 @@
{
"name": "setup-deno",
"description": "Set up Deno easially in GitHub Actions",
"version": "1.3.0",
"version": "1.4.1",
"author": "Deno Land Inc",
"license": "MIT",
"scripts": {

View File

@@ -21,7 +21,7 @@ async function install(version) {
const zip = zipName();
const url = version.isCanary
? `https://dl.deno.land/canary/${version.version}/${zip}`
: `https://github.com/denoland/deno/releases/download/v${version.version}/${zip}`;
: `https://dl.deno.land/release/v${version.version}/${zip}`;
core.info(`Downloading Deno from ${url}.`);