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