Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
rename nightly binary name to deno (#60)
Browse files Browse the repository at this point in the history
* rename nightly binary name to 'deno'

* update ci

* update readme
  • Loading branch information
axetroy committed Aug 7, 2020
1 parent 76c5cd9 commit b3c47eb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 47 deletions.
36 changes: 4 additions & 32 deletions .github/workflows/ci.yml
Expand Up @@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
deno: ["v0.20.0", "v0.38.0", "v0.x", "v1.x"]
deno: ["v0.20.0", "v0.38.0", "v0.x", "v1.x", "nightly"]
steps:
- uses: actions/checkout@v2

Expand All @@ -22,6 +22,9 @@ jobs:
- name: Check
run: npm run check

- name: Build
run: npm run build

- name: Set up Deno ${{ matrix.deno }}
uses: ./
with:
Expand All @@ -31,34 +34,3 @@ jobs:
run: |
deno --version
deno run https://deno.land/std/examples/welcome.ts
nightly:
name: Deno ${{ matrix.deno }} in ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
deno: ["nightly"]
steps:
- uses: actions/checkout@v2

- name: Set up Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Install dependencies
run: npm install

- name: Check
run: npm run check

- name: Set up Deno ${{ matrix.deno }}
uses: ./
with:
deno-version: ${{ matrix.deno }}

- name: Run deno
run: |
deno-nightly --version
deno-nightly run https://deno.land/std/examples/welcome.ts
15 changes: 1 addition & 14 deletions README.md
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-16.04
strategy:
matrix:
deno: ["v1.0.0", "v0.42.0", "v1.x", "v0.x"]
deno: ["v1.0.0", "v0.42.0", "v1.x", "v0.x", "nightly"]
name: Deno ${{ matrix.deno }} sample
steps:
- uses: actions/checkout@v2
Expand All @@ -46,19 +46,6 @@ jobs:
deno run https://deno.land/std/examples/welcome.ts
```

Nightly Testing:

```yaml
steps:
- uses: actions/checkout@v2
- uses: denolib/setup-deno@v2
with:
deno-version: nightly
- run: |
deno-nightly --version
deno-nightly run https://deno.land/std/examples/welcome.ts
```

# License

The scripts and documentation in this project are released under the
Expand Down
9 changes: 8 additions & 1 deletion src/installer.ts
Expand Up @@ -220,10 +220,17 @@ export async function acquireDeno(version: string): Promise<string> {
//
// Extract
//
const extPath = await extractDenoArchive(version, downloadPath);
let extPath = await extractDenoArchive(version, downloadPath);

core.debug(`deno file path '${extPath}'`);

if (version === "nightly") {
const newPath = path.join(path.dirname(extPath), "deno");
core.debug(`move deno file from '${extPath}' to '${newPath}'`);
fs.renameSync(extPath, newPath);
extPath = newPath;
}

//
// Install into the local tool cache - deno extracts a file that matches the fileName downloaded
//
Expand Down

0 comments on commit b3c47eb

Please sign in to comment.