1818 default : " auto"
1919 npm-codeberg :
2020 type : " choice"
21- description : " Whether publish to Codeberg NPM."
21+ description : " Whether publish to NPM Codeberg ."
2222 options :
2323 - " auto"
2424 - " false"
2525 default : " auto"
2626 npm-github :
2727 type : " choice"
28- description : " Whether publish to GitHub NPM."
28+ description : " Whether publish to NPM GitHub ."
2929 options :
3030 - " auto"
3131 - " false"
3232 default : " auto"
3333 npm-kaki87 :
3434 type : " choice"
35- description : " Whether publish to KaKi87 NPM."
35+ description : " Whether publish to NPM KaKi87 ."
3636 options :
3737 - " auto"
3838 - " false"
3939 default : " auto"
4040 npm-npm :
4141 type : " choice"
42- description : " Whether publish to NPM."
42+ description : " Whether publish to NPM NPM ."
4343 options :
4444 - " auto"
4545 - " false"
@@ -59,11 +59,11 @@ jobs:
5959 - name : " Setup Deno"
6060 uses : " denoland/setup-deno@v2"
6161 with :
62- deno-version : " ^2.7.12 "
62+ deno-version : " ^2.9.2 "
6363 - name : " Setup NodeJS"
64- uses : " actions/setup-node@v6 "
64+ uses : " actions/setup-node@v7 "
6565 with :
66- node-version : " ^24.15 .0"
66+ node-version : " ^24.18 .0"
6767 check-latest : true
6868 - name : " Get Cache Path"
6969 shell : " pwsh"
@@ -100,125 +100,90 @@ jobs:
100100 path : " ${{env.CDV_NPM_CACHE_PATH_ROOT}}"
101101 - name : " Setup NPM Environment"
102102 run : |-
103+ npm --global config set allow-git none
104+ npm --global config set allow-remote none
103105 npm --global config set git-tag-version false
104106 npm --global config set logs-max 0
105- - name : " Analyze Repository"
107+ npm --global config set min-release-age 1
108+ npm --global config set unicode true
109+ npm --global config set update-notifier=false
110+ - name : " Analyze Routes"
106111 shell : " pwsh"
107112 env :
108- CDV_JSR_DISPATCH : " ${{inputs.jsr || 'auto'}}"
109- CDV_NPM_CODEBERG_DISPATCH : " ${{inputs.npm-codeberg || 'auto'}}"
110- CDV_NPM_GITHUB_DISPATCH : " ${{inputs.npm-github || 'auto'}}"
111- CDV_NPM_KAKI87_DISPATCH : " ${{inputs.npm-kaki87 || 'auto'}}"
112- CDV_NPM_NPM_DISPATCH : " ${{inputs.npm-npm || 'auto'}}"
113+ CDV_DISPATCH_JSR : " ${{inputs.jsr || 'auto'}}"
114+ CDV_DISPATCH_NPM_CODEBERG : " ${{inputs.npm-codeberg || 'auto'}}"
115+ CDV_DISPATCH_NPM_GITHUB : " ${{inputs.npm-github || 'auto'}}"
116+ CDV_DISPATCH_NPM_KAKI87 : " ${{inputs.npm-kaki87 || 'auto'}}"
117+ CDV_DISPATCH_NPM_NPM : " ${{inputs.npm-npm || 'auto'}}"
113118 run : |-
114119 $ErrorActionPreference = 'Stop'
115120 $PSNativeCommandUseErrorActionPreference = $True
116121 [PSCustomObject]$Config = ConvertFrom-Json -InputObject (Get-Content -LiteralPath '.\deno.jsonc' -Raw -Encoding 'UTF8NoBOM') -Depth 100
117- [Boolean]$Build = $Null -ine $Config.tasks.build
118- [Boolean]$JSRBuild = $Null -ine $Config.tasks.'jsr-build'
119- [Boolean]$JSRPublish = $Env:CDV_JSR_DISPATCH -ieq 'auto' -and $Null -ine $Config.tasks.'jsr-publish'
120- [Boolean]$NPMCodebergBuild = $Null -ine $Config.tasks.'npm-codeberg-build'
121- [Boolean]$NPMCodebergPublish = $Env:CDV_NPM_CODEBERG_DISPATCH -ieq 'auto' -and $Null -ine $Config.tasks.'npm-codeberg-publish'
122- [Boolean]$NPMGitHubBuild = $Null -ine $Config.tasks.'npm-github-build'
123- [Boolean]$NPMGitHubPublish = $Env:CDV_NPM_GITHUB_DISPATCH -ieq 'auto' -and $Null -ine $Config.tasks.'npm-github-publish'
124- [Boolean]$NPMKaKi87Build = $Null -ine $Config.tasks.'npm-kaki87-build'
125- [Boolean]$NPMKaKi87Publish = $Env:CDV_NPM_KAKI87_DISPATCH -ieq 'auto' -and $Null -ine $Config.tasks.'npm-kaki87-publish'
126- [Boolean]$NPMNPMBuild = $Null -ine $Config.tasks.'npm-npm-build'
127- [Boolean]$NPMNPMPublish = $Env:CDV_NPM_NPM_DISPATCH -ieq 'auto' -and $Null -ine $Config.tasks.'npm-npm-publish'
122+ [Boolean]$JSRPublish = $Null -ine $Config.tasks.'jsr-publish'
123+ [Boolean]$JSRDispatch = $Env:CDV_DISPATCH_JSR -ieq 'auto' -and $JSRPublish
124+ [Boolean]$NPMCodebergPublish = $Null -ine $Config.tasks.'npm-codeberg-publish'
125+ [Boolean]$NPMCodebergDispatch = $Env:CDV_DISPATCH_NPM_CODEBERG -ieq 'auto' -and $NPMCodebergPublish
126+ [Boolean]$NPMGitHubPublish = $Null -ine $Config.tasks.'npm-github-publish'
127+ [Boolean]$NPMGitHubDispatch = $Env:CDV_DISPATCH_NPM_GITHUB -ieq 'auto' -and $NPMGitHubPublish
128+ [Boolean]$NPMKaKi87Publish = $Null -ine $Config.tasks.'npm-kaki87-publish'
129+ [Boolean]$NPMKaKi87Dispatch = $Env:CDV_DISPATCH_NPM_KAKI87 -ieq 'auto' -and $NPMKaKi87Publish
130+ [Boolean]$NPMNPMPublish = $Null -ine $Config.tasks.'npm-npm-publish'
131+ [Boolean]$NPMNPMDispatch = $Env:CDV_DISPATCH_NPM_NPM -ieq 'auto' -and $NPMNPMPublish
128132 Add-Content -LiteralPath $Env:GITHUB_STEP_SUMMARY -Value @"
129- # Dispatch
133+ # Routes
130134
131- - **Build:** $($Build ? '✔️' : '❌')
132- - **JSR:**
133- - **Build:** $($JSRBuild ? '✔️' : '❌')
134- - **Publish:** $($JSRPublish ? '✔️' : '❌')
135- - **NPM - Codeberg:**
136- - **Build:** $($NPMCodebergBuild ? '✔️' : '❌')
137- - **Publish:** $($NPMCodebergPublish ? '✔️' : '❌')
138- - **NPM - GitHub:**
139- - **Build:** $($NPMGitHubBuild ? '✔️' : '❌')
140- - **Publish:** $($NPMGitHubPublish ? '✔️' : '❌')
141- - **NPM - KaKi87:**
142- - **Build:** $($NPMKaKi87Build ? '✔️' : '❌')
143- - **Publish:** $($NPMKaKi87Publish ? '✔️' : '❌')
144- - **NPM - NPM:**
145- - **Build:** $($NPMNPMBuild ? '✔️' : '❌')
146- - **Publish:** $($NPMNPMPublish ? '✔️' : '❌')
135+ | **Name** | **Build** | **Publish** | **Dispatch** |
136+ |:--|:-:|:-:|:-:|
137+ | (General) | $(($Null -ine $Config.tasks.'build') ? '✔️' : '❌') | | |
138+ | JSR | $(($Null -ine $Config.tasks.'jsr-build') ? '✔️' : '❌') | $($JSRPublish ? '✔️' : '❌') | $($JSRDispatch ? '✔️' : '❌') |
139+ | NPM Codeberg | $(($Null -ine $Config.tasks.'npm-codeberg-build') ? '✔️' : '❌') | $($NPMCodebergPublish ? '✔️' : '❌') | $($NPMCodebergDispatch ? '✔️' : '❌') |
140+ | NPM GitHub | $(($Null -ine $Config.tasks.'npm-github-build') ? '✔️' : '❌') | $($NPMGitHubPublish ? '✔️' : '❌') | $($NPMGitHubDispatch ? '✔️' : '❌') |
141+ | NPM KaKi87 | $(($Null -ine $Config.tasks.'npm-kaki87-build') ? '✔️' : '❌') | $($NPMKaKi87Publish ? '✔️' : '❌') | $($NPMKaKi87Dispatch ? '✔️' : '❌') |
142+ | NPM NPM | $(($Null -ine $Config.tasks.'npm-npm-build') ? '✔️' : '❌') | $($NPMNPMPublish ? '✔️' : '❌') | $($NPMNPMDispatch ? '✔️' : '❌') |
147143 "@
148- Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_BUILD=$($Build.ToString().ToLower())"
149- Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_JSR_BUILD=$($JSRBuild.ToString().ToLower())"
150- Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_JSR_PUBLISH=$($JSRPublish.ToString().ToLower())"
151- Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_NPM_CODEBERG_BUILD=$($NPMCodebergBuild.ToString().ToLower())"
152- Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_NPM_CODEBERG_PUBLISH=$($NPMCodebergPublish.ToString().ToLower())"
153- Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_NPM_GITHUB_BUILD=$($NPMGitHubBuild.ToString().ToLower())"
154- Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_NPM_GITHUB_PUBLISH=$($NPMGitHubPublish.ToString().ToLower())"
155- Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_NPM_KAKI87_BUILD=$($NPMKaKi87Build.ToString().ToLower())"
156- Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_NPM_KAKI87_PUBLISH=$($NPMKaKi87Publish.ToString().ToLower())"
157- Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_NPM_NPM_BUILD=$($NPMNPMBuild.ToString().ToLower())"
158- Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_NPM_NPM_PUBLISH=$($NPMNPMPublish.ToString().ToLower())"
144+ Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_DEPLOY_JSR=$($JSRDispatch.ToString().ToLower())"
145+ Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_DEPLOY_NPM_CODEBERG=$($NPMCodebergDispatch.ToString().ToLower())"
146+ Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_DEPLOY_NPM_GITHUB=$($NPMGitHubDispatch.ToString().ToLower())"
147+ Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_DEPLOY_NPM_KAKI87=$($NPMKaKi87Dispatch.ToString().ToLower())"
148+ Add-Content -LiteralPath $Env:GITHUB_ENV -Value "CDV_DEPLOY_NPM_NPM=$($NPMNPMDispatch.ToString().ToLower())"
159149 - name : " Build Repository"
160150 id : " build-general"
161- if : " ${{env.CDV_BUILD == 'true' }}"
151+ if : " ${{!cancelled() }}"
162152 run : |-
163- deno task build
153+ deno task --if-present build
164154 - name : " Publish To JSR"
165- if : " ${{!cancelled() && (steps.build-general.outcome == 'success' || steps.build-general.outcome == 'skipped') && env.CDV_JSR_PUBLISH == 'true'}}"
166- shell : " pwsh"
155+ if : " ${{!cancelled() && steps.build-general.outcome == 'success' && env.CDV_DEPLOY_JSR == 'true'}}"
167156 run : |-
168- $ErrorActionPreference = 'Stop'
169- $PSNativeCommandUseErrorActionPreference = $True
170- If ($Env:CDV_JSR_BUILD -ieq 'true') {
171- deno task jsr-build
172- }
157+ deno task --if-present jsr-build
173158 deno task jsr-publish
174- - name : " Publish To Codeberg NPM"
175- if : " ${{!cancelled() && (steps.build-general.outcome == 'success' || steps.build-general.outcome == 'skipped') && env.CDV_NPM_CODEBERG_PUBLISH == 'true'}}"
176- shell : " pwsh"
159+ - name : " Publish To NPM Codeberg"
160+ if : " ${{!cancelled() && steps.build-general.outcome == 'success' && env.CDV_DEPLOY_NPM_CODEBERG == 'true'}}"
177161 env :
178162 CDV_NPM_CODEBERG_TOKEN : " ${{secrets.NPM_CODEBERG_TOKEN}}"
179163 run : |-
180- $ErrorActionPreference = 'Stop'
181- $PSNativeCommandUseErrorActionPreference = $True
182- If ($Env:CDV_NPM_CODEBERG_BUILD -ieq 'true') {
183- deno task npm-codeberg-build
184- }
185- deno task npm-codeberg-publish --token $Env:CDV_NPM_CODEBERG_TOKEN
186- - name : " Publish To GitHub NPM"
187- if : " ${{!cancelled() && (steps.build-general.outcome == 'success' || steps.build-general.outcome == 'skipped') && env.CDV_NPM_GITHUB_PUBLISH == 'true'}}"
188- shell : " pwsh"
164+ deno task --if-present npm-codeberg-build
165+ deno task npm-codeberg-publish --token '^CDV_NPM_CODEBERG_TOKEN'
166+ - name : " Publish To NPM GitHub"
167+ if : " ${{!cancelled() && steps.build-general.outcome == 'success' && env.CDV_DEPLOY_NPM_GITHUB == 'true'}}"
189168 env :
190169 CDV_NPM_GITHUB_TOKEN : " ${{secrets.GITHUB_TOKEN}}"
191170 run : |-
192- $ErrorActionPreference = 'Stop'
193- $PSNativeCommandUseErrorActionPreference = $True
194- If ($Env:CDV_NPM_GITHUB_BUILD -ieq 'true') {
195- deno task npm-github-build
196- }
197- deno task npm-github-publish --token $Env:CDV_NPM_GITHUB_TOKEN
198- - name : " Publish To KaKi87 NPM"
199- if : " ${{!cancelled() && (steps.build-general.outcome == 'success' || steps.build-general.outcome == 'skipped') && env.CDV_NPM_KAKI87_PUBLISH == 'true'}}"
200- shell : " pwsh"
171+ deno task --if-present npm-github-build
172+ deno task npm-github-publish --token '^CDV_NPM_GITHUB_TOKEN'
173+ - name : " Publish To NPM KaKi87"
174+ if : " ${{!cancelled() && steps.build-general.outcome == 'success' && env.CDV_DEPLOY_NPM_KAKI87 == 'true'}}"
201175 env :
202176 CDV_NPM_KAKI87_TOKEN : " ${{secrets.NPM_KAKI87_TOKEN}}"
203177 run : |-
204- $ErrorActionPreference = 'Stop'
205- $PSNativeCommandUseErrorActionPreference = $True
206- If ($Env:CDV_NPM_KAKI87_BUILD -ieq 'true') {
207- deno task npm-kaki87-build
208- }
209- deno task npm-kaki87-publish --token $Env:CDV_NPM_KAKI87_TOKEN
210- - name : " Publish To NPM"
211- if : " ${{!cancelled() && (steps.build-general.outcome == 'success' || steps.build-general.outcome == 'skipped') && env.CDV_NPM_NPM_PUBLISH == 'true'}}"
212- shell : " pwsh"
178+ deno task --if-present npm-kaki87-build
179+ deno task npm-kaki87-publish --token '^CDV_NPM_KAKI87_TOKEN'
180+ - name : " Publish To NPM NPM"
181+ if : " ${{!cancelled() && steps.build-general.outcome == 'success' && env.CDV_DEPLOY_NPM_NPM == 'true'}}"
213182 env :
214183 CDV_NPM_NPM_TOKEN : " ${{secrets.NPM_NPM_TOKEN}}"
215184 run : |-
216- $ErrorActionPreference = 'Stop'
217- $PSNativeCommandUseErrorActionPreference = $True
218- If ($Env:CDV_NPM_NPM_BUILD -ieq 'true') {
219- deno task npm-npm-build
220- }
221- deno task npm-npm-publish --token $Env:CDV_NPM_NPM_TOKEN
185+ deno task --if-present npm-npm-build
186+ deno task npm-npm-publish --provenance --token '^CDV_NPM_NPM_TOKEN'
222187 - name : " Save Deno Cache"
223188 if : " ${{!cancelled()}}"
224189 uses : " actions/cache/save@v6"
0 commit comments