Tiny script for preparing web assets for deployment
1when: 2 - event: ["push"] 3 branch: ["master"] 4 5dependencies: 6 nixpkgs: 7 - nodejs 8 - gnugrep 9 10steps: 11 - name: "Install dependencies" 12 command: "npm install" 13 14 - name: "tsc" 15 nommand: "npx tsc && echo 'done.'" 16 17 - name: "npm publish" 18 command: "git log -1 --pretty=%B | grep -q '^publish new version' && npm set //registry.npmjs.org/:_authToken=${NPM_TOKEN} && npm publish || exit 0" 19 20clone: 21 skip: false 22 depth: 3 23 submodules: false