Skip to content

Commit c7ad615

Browse files
fix docs/pure-caches in cjs mode (#2895)
wont need chdir on `docs/pure-caches`
1 parent 3fc8a92 commit c7ad615

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/deploy.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,4 @@ jobs:
5656
if: env.COS_SECRET_ID
5757
env:
5858
COS_SECRET_KEY: ${{secrets.COS_SECRET_KEY}}
59-
run: |
60-
cd docs
61-
pnpm run pure-caches
59+
run: ./docs/pure-caches

docs/pure-caches

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22

3-
import TenYun from 'tenyun';
3+
const { default: TenYun } = require('tenyun');
44

55
new TenYun(process.env.COS_SECRET_ID ?? '', process.env.COS_SECRET_KEY ?? '')
66
.cdn

0 commit comments

Comments
 (0)