Skip to content

Commit

Permalink
build(deno): update to Deno 2 (#27)
Browse files Browse the repository at this point in the history
* ci(actions): bump denoland/setup-deno from 1 to 2

Bumps [denoland/setup-deno](https://github.com/denoland/setup-deno) from 1 to 2.
- [Release notes](https://github.com/denoland/setup-deno/releases)
- [Commits](denoland/setup-deno@v1...v2)

---
updated-dependencies:
- dependency-name: denoland/setup-deno
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* update to Deno 2

Signed-off-by: EdJoPaTo <github@edjopato.de>

* ci: dont run on dependabot commits

* style: double quotes in yaml

* build(deno): explicitly ignore node_modules

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: EdJoPaTo <github@edjopato.de>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: EdJoPaTo <rfc-conform-git-commit-email@funny-long-domain-label-everyone-hates-as-it-is-too-long.edjopato.de>
  • Loading branch information
dependabot[bot] and EdJoPaTo authored Oct 14, 2024
1 parent 5cff332 commit cdebb8c
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@ name: Deno

on:
push:
branches-ignore: ["dependabot/**"]
pull_request:
workflow_dispatch:
schedule:
# Check if it works with current deno version
- cron: '42 2 * * 6' # weekly on Saturday 2:42 UTC
- cron: "42 2 * * 6" # weekly on Saturday 2:42 UTC

jobs:
denofmt-and-lint:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x
- uses: actions/checkout@v4

- run: deno lint
Expand All @@ -25,9 +26,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x
- uses: actions/checkout@v4

- run: deno cache source/*.ts
Expand All @@ -37,9 +38,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x
- uses: actions/checkout@v4

- run: deno cache source/mod.ts
Expand All @@ -49,9 +50,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x
- uses: actions/checkout@v4

- run: deno cache source/mod.ts
Expand All @@ -61,9 +62,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x
- uses: actions/checkout@v4

- run: deno cache source/*.ts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
contents: read
id-token: write
steps:
- uses: denoland/setup-deno@v1
- uses: denoland/setup-deno@v2
with:
deno-version: v1.x
deno-version: v2.x
- uses: actions/checkout@v4

- run: deno publish
5 changes: 3 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ name: Node.js

on:
push:
branches-ignore: ["dependabot/**"]
pull_request:
workflow_dispatch:
schedule:
# Check if it works with current dependencies
- cron: '42 2 * * 6' # weekly on Saturday 2:42 UTC
- cron: "42 2 * * 6" # weekly on Saturday 2:42 UTC

jobs:
test:
Expand All @@ -16,7 +17,7 @@ jobs:
steps:
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
node-version: "lts/*"
- uses: actions/checkout@v4
- run: npm install
- run: npm test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
node-version: "lts/*"
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm publish --provenance --access public
env:
Expand Down
1 change: 1 addition & 0 deletions deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0",
"exports": "./source/mod.ts",
"lock": false,
"nodeModulesDir": false,
// https://deno.land/manual/advanced/typescript/configuration
// https://www.typescriptlang.org/tsconfig/
"compilerOptions": {
Expand Down

0 comments on commit cdebb8c

Please sign in to comment.