File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 88 - stage : Deploy
99 before_deploy :
1010 - npm run build:prod
11- - export PKG_NAME=$(node -e "console.log(require('./dist/package').name)")
12- - export PKG_VERSION=$(node -e "console.log(require('./dist/package').version)")
13- - cd dist
14- - zip -9 --recurse-paths ../${PKG_NAME}_v$PKG_VERSION.zip **
15- - zip -9 --recurse-paths ../${PKG_NAME}_v${PKG_VERSION}_min.zip ** --exclude \*.d.ts --exclude readme.* --exclude \*.map
16- - cd ..
11+ - export PKG_NAME=$(node -e "console.log(require('./dist/package/production/package ').name)")
12+ - export PKG_VERSION=$(node -e "console.log(require('./dist/package/production/package ').version)")
13+ - cd dist/package/production
14+ - zip -9 --recurse-paths ../../ ${PKG_NAME}_v$PKG_VERSION.zip **
15+ - zip -9 --recurse-paths ../../ ${PKG_NAME}_v${PKG_VERSION}_min.zip ** --exclude \*.d.ts --exclude readme.* --exclude \*.map
16+ - cd ../../..
1717 deploy :
1818 - provider : pages
19- local_dir : dist-jsdoc /$PKG_NAME/$PKG_VERSION
19+ local_dir : dist/homepage /$PKG_NAME/$PKG_VERSION
2020 fqdn : $PKG_NAME.jaid.codes
2121 skip_cleanup : true
2222 github_token : $GITHUB_TOKEN # Permissions: public_repo, repo:status, repo_deployment
2323 - provider : releases
2424 file_glob : true
2525 file :
26- - dist/package.json
27- - dist/license.*
28- - dist/*.d.ts
29- - " *.zip"
26+ - dist/package/production/package .json
27+ - dist/package/production/ license.*
28+ - dist/package/production/ *.d.ts
29+ - " dist/ *.zip"
3030 skip_cleanup : true
3131 name : $PKG_NAME $PKG_VERSION
3232 api_key : $GITHUB_TOKEN # Permissions: public_repo, repo:status, repo_deployment
3333 on : { tags: true }
3434 - provider : script
35- script : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && npm publish dist
35+ script : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && npm publish dist/package/production
3636 skip_cleanup : true
3737 on : { tags: true }
You can’t perform that action at this time.
0 commit comments