1 Commits

Author SHA1 Message Date
crowlkats
5fae568d37 1.3.0 2024-07-12 13:36:56 +02:00
7 changed files with 20 additions and 34 deletions

View File

@@ -26,14 +26,7 @@ jobs:
- name: Test Deno
run: deno run https://deno.land/std@0.198.0/examples/welcome.ts
- 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'
- name: Test `deno install`
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

View File

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

View File

@@ -4,6 +4,20 @@ 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
@@ -53,23 +67,3 @@ 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.4.1",
"version": "1.3.0",
"lockfileVersion": 3,
"requires": true,
"packages": {

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "setup-deno",
"version": "1.4.1",
"version": "1.3.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "setup-deno",
"version": "1.4.1",
"version": "1.3.0",
"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.4.1",
"version": "1.3.0",
"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://dl.deno.land/release/v${version.version}/${zip}`;
: `https://github.com/denoland/deno/releases/download/v${version.version}/${zip}`;
core.info(`Downloading Deno from ${url}.`);