File tree Expand file tree Collapse file tree 4 files changed +343
-280
lines changed
Expand file tree Collapse file tree 4 files changed +343
-280
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+ name : CI
5+
6+ on :
7+ push :
8+ branches :
9+ - ' **'
10+ pull_request :
11+ branches :
12+ - ' **'
13+
14+ jobs :
15+
16+ build-check :
17+
18+ name : Build check
19+
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - uses : actions/checkout@v2
24+
25+ - name : Use Node.js
26+ uses : actions/setup-node@v1
27+ with :
28+ node-version : 12
29+
30+ - run : yarn
31+ - run : yarn build
Original file line number Diff line number Diff line change 1+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+ name : Release
5+
6+ on :
7+ release :
8+ types :
9+ - created
10+
11+ jobs :
12+
13+ publish-npm :
14+
15+ name : NPM Publish
16+
17+ if : github.repository_owner == 'coajs'
18+
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - uses : actions/checkout@v2
23+
24+ - uses : actions/setup-node@v1
25+ with :
26+ node-version : 12
27+ registry-url : https://registry.npmjs.org
28+
29+ - name : Build
30+ run : |
31+ yarn
32+ npm --no-git-tag-version version ${{ github.event.release.tag_name }}
33+ npm run build
34+
35+ - name : Publish
36+ env :
37+ NODE_AUTH_TOKEN : ${{ secrets.AEX_NPM_TOKEN }}
38+ run : |
39+ cd dist
40+ npm publish
Original file line number Diff line number Diff line change 11{
22 "name" : " coa-mysql" ,
3- "version" : " 1.3.1 " ,
3+ "version" : " 0.0.0 " ,
44 "description" : " Mysql component for coa" ,
55 "keywords" : [
66 " coajs" ,
99 ],
1010 "license" : " MIT" ,
1111 "author" : " Aex" ,
12- "homepage" : " https://github.com/coajs/coa-mysql " ,
12+ "homepage" : " https://github.com/coajs" ,
1313 "repository" : {
1414 "type" : " git" ,
1515 "url" : " https://github.com/coajs/coa-mysql.git"
1616 },
1717 "scripts" : {
1818 "dev" : " tsc -w" ,
19- "build" : " rm -rf dist && tsc && cp package.json dist" ,
20- "publish-patch" : " yarn build && yarn version --patch && cp package.json README.md dist && cd dist && rm -rf @* && npm publish" ,
21- "publish-prerelease" : " yarn build && yarn version --prerelease && cp package.json README.md dist && cd dist && rm -rf @* && npm publish" ,
19+ "build" : " rm -rf dist && tsc && cp package.json *.md dist && rm -rf dist/@*" ,
20+ "publish-prerelease" : " yarn build && yarn version --prerelease && cp package.json *.md dist && cd dist && rm -rf @* && npm publish" ,
2221 "test" : " NODE_PATH=run node dist/@test"
2322 },
2423 "dependencies" : {
24+ "coa-echo" : " ^1.0.8" ,
25+ "coa-error" : " ^1.1.3" ,
26+ "coa-helper" : " ^1.1.1" ,
27+ "coa-redis" : " ^1.3.2" ,
28+ "coa-secure" : " ^1.1.2" ,
2529 "knex" : " 0.21" ,
2630 "mysql" : " ^2.18.1"
2731 },
2832 "devDependencies" : {
2933 "@types/node" : " ^14.14.35" ,
30- "coa-echo" : " ^1.0.8" ,
31- "coa-error" : " ^1.1.3" ,
32- "coa-helper" : " ^1.1.1" ,
33- "coa-redis" : " ^1.3.1" ,
34- "coa-secure" : " ^1.1.2" ,
3534 "typescript" : " ^4.2.3"
36- },
37- "peerDependencies" : {
38- "coa-echo" : " 1" ,
39- "coa-error" : " 1" ,
40- "coa-helper" : " 1" ,
41- "coa-redis" : " 1" ,
42- "coa-secure" : " 1"
4335 }
4436}
You can’t perform that action at this time.
0 commit comments