Skip to content

Commit

Permalink
fix docs/pure-caches in cjs mode (#2895)
Browse files Browse the repository at this point in the history
wont need chdir on `docs/pure-caches`
  • Loading branch information
TheNorthMemory authored Feb 19, 2025
1 parent 3fc8a92 commit c7ad615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,4 @@ jobs:
if: env.COS_SECRET_ID
env:
COS_SECRET_KEY: ${{secrets.COS_SECRET_KEY}}
run: |
cd docs
pnpm run pure-caches
run: ./docs/pure-caches
2 changes: 1 addition & 1 deletion docs/pure-caches
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

import TenYun from 'tenyun';
const { default: TenYun } = require('tenyun');

new TenYun(process.env.COS_SECRET_ID ?? '', process.env.COS_SECRET_KEY ?? '')
.cdn
Expand Down

0 comments on commit c7ad615

Please sign in to comment.