Skip to content

Commit

Permalink
Update resources
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Dec 4, 2024
1 parent a017ea0 commit 8f67019
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .dnt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
} from "DNT";
const configJSR = await getMetadataFromConfig("jsr.jsonc");
await invokeDenoNodeJSTransformer({
assetsCopy: [
copyAssets: [
"LICENSE.md",
"README.md"
],
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-deno-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
run: |-
deno task jsr-publish-provenance
- name: "Publish Package To JSR"
if: "${{!cancelled() && ((steps.metadata.outputs.jsr-publish-provenance == 'true' && steps.jsr-publish-provenance.outcome == 'failure') || steps.metadata.outputs.jsr-publish-provenance == 'false' && steps.metadata.outputs.jsr-publish == 'true')}}"
if: "${{!cancelled() && ((steps.metadata.outputs.jsr-publish-provenance == 'true' && steps.jsr-publish-provenance.outcome == 'failure') || (steps.metadata.outputs.jsr-publish-provenance == 'false' && steps.metadata.outputs.jsr-publish == 'true'))}}"
run: |-
deno task jsr-publish
- name: "Build Package For NPM"
Expand Down
46 changes: 15 additions & 31 deletions .github/workflows/review-deno-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,23 +81,27 @@ jobs:
Join-String -Separator ', '
)" -ErrorAction 'Stop'
}
- name: "Verify Code"
if: "${{!cancelled() && steps.analyze.outcome == 'success'}}"
shell: "pwsh"
- name: "Build Repository"
if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.build == 'true'}}"
run: |-
[String[]]$Files = Get-ChildItem -LiteralPath '.\' -Include @('*.ts', '*.tsx') -File -Recurse -Name
[Boolean]$ShouldReload = $Env:GITHUB_EVENT_NAME -iin @('schedule', 'workflow_dispatch')
ForEach ($File In $Files) {
$ShouldReload ? (deno cache --reload $File) : (deno cache $File)
}
deno task build
- name: "Lint Code"
if: "${{!cancelled() && steps.analyze.outcome == 'success'}}"
run: |-
deno lint
- name: "Build Repository"
if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.build == 'true'}}"
- name: "Check Dependencies Update"
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false'}}"
run: |-
deno task build
deno outdated
- name: "Check Deployment For Remote Import"
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false'}}"
shell: "pwsh"
run: |-
Get-ChildItem -LiteralPath '.\' -File -Recurse -Name
- name: "Check Deployment For JSR"
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && steps.analyze.outputs.jsr-check == 'true'}}"
run: |-
deno task jsr-check
- name: "Test Code"
id: "test"
if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.test == 'true'}}"
Expand All @@ -111,26 +115,6 @@ jobs:
if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.benchmark == 'true'}}"
run: |-
deno bench --allow-all --no-prompt
# - name: "Check Dependencies Update"
# if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')}}"
# shell: "pwsh"
# run: |-
# [String]$Output = deno run --allow-net "--allow-read=$($Env:GITHUB_WORKSPACE)" --no-prompt https://deno.land/x/[email protected]/main.ts --dry-run **/*.ts **/*.tsx deno.jsonc *>&1 |
# Join-String -Separator "`n"
# $LASTEXITCODE = 0
# Write-Host -Object $Output
# If ($Output -imatch 'able to update') {
# Write-Warning -Message 'Found dependencies that need to update!'
# }
- name: "Check Deployment For Remote Import"
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false'}}"
shell: "pwsh"
run: |-
Get-ChildItem -LiteralPath '.\' -File -Recurse -Name
- name: "Check Deployment For JSR"
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && steps.analyze.outputs.jsr-check == 'true'}}"
run: |-
deno task jsr-check
- name: "Build Package For NPM"
if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && steps.analyze.outputs.npm-build == 'true'}}"
run: |-
Expand Down
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"useTabs": true
},
"imports": { // IMPORTANT: Only remap development dependencies!
"DNT": "https://raw.githubusercontent.com/hugoalh/deno-nodejs-transformer/v0.5.3/mod.ts",
"DNT": "https://raw.githubusercontent.com/hugoalh/deno-nodejs-transformer/v0.6.0/mod.ts",
"STD/assert": "jsr:@std/assert@^1.0.8"
},
"lint": {
Expand Down

0 comments on commit 8f67019

Please sign in to comment.