mirror of
https://gitea.com/actions/setup-deno.git
synced 2025-12-12 19:36:43 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa660b328d | ||
|
|
cce4306590 | ||
|
|
916edb9a40 | ||
|
|
b8a676db36 |
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@@ -26,7 +26,14 @@ jobs:
|
|||||||
- name: Test Deno
|
- name: Test Deno
|
||||||
run: deno run https://deno.land/std@0.198.0/examples/welcome.ts
|
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: |
|
run: |
|
||||||
deno install --allow-net -n deno_curl https://deno.land/std@0.198.0/examples/curl.ts
|
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
|
deno_curl https://deno.land/std@0.198.0/examples/curl.ts
|
||||||
|
|||||||
1
CODEOWNERS
Normal file
1
CODEOWNERS
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* @lucacasonato
|
||||||
34
README.md
34
README.md
@@ -4,20 +4,6 @@ Set up your GitHub Actions workflow with a specific version of Deno.
|
|||||||
|
|
||||||
## Usage
|
## 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
|
### Latest stable for a major
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@@ -67,3 +53,23 @@ Targets the latest major, minor and patch version of Deno.
|
|||||||
with:
|
with:
|
||||||
deno-version: e7b7129b7a92b7500ded88f8f5baa25a7f59e56e
|
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",
|
"name": "setup-deno",
|
||||||
"version": "1.3.0",
|
"version": "1.4.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-deno",
|
"name": "setup-deno",
|
||||||
"version": "1.3.0",
|
"version": "1.4.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "setup-deno",
|
"name": "setup-deno",
|
||||||
"version": "1.3.0",
|
"version": "1.4.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.10.0",
|
"@actions/core": "^1.10.0",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "setup-deno",
|
"name": "setup-deno",
|
||||||
"description": "Set up Deno easially in GitHub Actions",
|
"description": "Set up Deno easially in GitHub Actions",
|
||||||
"version": "1.3.0",
|
"version": "1.4.1",
|
||||||
"author": "Deno Land Inc",
|
"author": "Deno Land Inc",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ async function install(version) {
|
|||||||
const zip = zipName();
|
const zip = zipName();
|
||||||
const url = version.isCanary
|
const url = version.isCanary
|
||||||
? `https://dl.deno.land/canary/${version.version}/${zip}`
|
? `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}.`);
|
core.info(`Downloading Deno from ${url}.`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user