mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-11-29 18:28:09 +08:00
parent
783272327d
commit
be5c25eada
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -29,5 +29,5 @@ jobs:
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
npm i -g qiniu@6.x
|
||||
echo "${{ secrets.QINIU_ENV_JS }}" > qiniu_env.js
|
||||
echo "${{ secrets.QINIU_ENV_JS }}" > ./scripts/qiniu_env.js
|
||||
node scripts/publish.js
|
||||
|
@ -1,4 +1,8 @@
|
||||
const qiniu = require('qiniu');
|
||||
const { execSync } = require('child_process');
|
||||
// get root folder of global node modules
|
||||
const root = execSync('npm root -g').toString().trim();
|
||||
|
||||
const qiniu = require(`${root}/qiniu`);
|
||||
const package = require('../package.json');
|
||||
const { AK, SK, bucket } = require('./qiniu_env.js');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user