UNPKG

click-stream-proto

Version:
30 lines (23 loc) 742 B
version: 0.2 run-as: root phases: install: commands: - echo running scripts - chmod +x scripts/prereqs.sh - sh scripts/prereqs.sh pre_build: commands: - echo Running NPM scripts... - cat ~/.npmrc - CLICK_STREAM_PROTO_PKG_NO=$(npm view $PROTO_PACKAGE_NAME version) - NEW_PKG_NO=$(echo $CLICK_STREAM_PROTO_PKG_NO | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}') build: commands: - echo Running build commands... - cat ~/.npmrc - npm version $NEW_PKG_NO - npm publish post_build: commands: - echo No post build commands....