File tree Expand file tree Collapse file tree 5 files changed +52
-4
lines changed
Expand file tree Collapse file tree 5 files changed +52
-4
lines changed Original file line number Diff line number Diff line change 66 - " b*"
77
88jobs :
9- release :
9+ release-binaries :
1010 runs-on : ubuntu-latest
1111 steps :
1212 - name : Get the version
Original file line number Diff line number Diff line change 77 branches : [ master ]
88
99jobs :
10- build :
10+ test :
1111 runs-on : ${{ matrix.os }}
1212 strategy :
1313 matrix :
Original file line number Diff line number Diff line change 66 - " v*"
77
88jobs :
9- build :
9+ check-version :
1010 runs-on : ubuntu-latest
1111 steps :
1212 - name : Read version from tag
2828 - name : Package.json version matches Tag
2929 if : steps.get_version.outputs.VERSION != steps.extract_version.outputs.version
3030 run : exit 1
31+ test :
32+ runs-on : ${{ matrix.os }}
33+ needs : [check-version]
34+ strategy :
35+ matrix :
36+ os : [ubuntu-latest, windows-latest, macos-latest]
37+ node-version : [14.x, 15.x]
38+ steps :
39+ - uses : actions/checkout@v2
40+ - name : Use Node.js ${{ matrix.node-version }}
41+ uses : actions/setup-node@v1
42+ with :
43+ node-version : ${{ matrix.node-version }}
44+ registry-url : ' https://registry.npmjs.org'
45+ - name : NPM install
46+ run : npm install
47+ - name : Build bundle
48+ run : npm run build --if-present
49+ - name : Tests
50+ run : npm test
51+ package :
52+ runs-on : ubuntu-latest
53+ needs : [check-version, test]
54+ steps :
55+ - uses : actions/checkout@v2
56+ # Setup .npmrc file to publish to npm
57+ - uses : actions/setup-node@v2
58+ with :
59+ node-version : ' 15.x'
60+ registry-url : ' https://registry.npmjs.org'
3161 - name : NPM install
3262 run : npm install
3363 - name : Build bundle
Original file line number Diff line number Diff line change 1+ node_modules /
2+ .npm
3+ .eslintcache
4+ .antlr
5+
6+ bin /
7+ build /
8+ typings-autogen /
9+
10+ # Logs
11+ logs
12+ * .log
13+ npm-debug.log *
14+ yarn-debug.log *
15+ yarn-error.log *
16+ lerna-debug.log *
Original file line number Diff line number Diff line change 3030 "types" : " npm run gentypes && npx rollup -c rollup.config.bundletypes.mjs" ,
3131 "bundle" : " npx rollup -c rollup.config.package.mjs" ,
3232 "build" : " rimraf ./dist && npm run types && npm run bundle" ,
33- "test" : " node ./test/index.js"
33+ "test" : " node ./test/index.js" ,
34+ "cleanrelease" : " rimraf bin && rimraf build && rimraf typings-autogen" ,
35+ "clean" : " rimraf bin && rimraf build && rimraf typings-autogen && rimraf dist"
3436 },
3537 "installBinaries" : {
3638 "url" : " https://github.com/docd27/rollup-plugin-glsl-optimize/releases/download/" ,
You can’t perform that action at this time.
0 commit comments