mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-11 19:06:43 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5fae568d37 |
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@@ -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
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
* @lucacasonato
|
||||
34
README.md
34
README.md
@@ -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
2
node_modules/.package-lock.json
generated
vendored
@@ -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
4
package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -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}.`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user