You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
597 B

machine:
node:
version: node
compile:
override:
- npm run pack
deployment:
default:
branch: /.*/
commands:
- cp packed/* $CIRCLE_ARTIFACTS
- node ./scripts/slack.js
release:
tag: /(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)/
owner: zeit
commands:
- ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace $CIRCLE_TAG packed
- npm publish
dependencies:
pre:
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
post:
- go get github.com/tcnksm/ghr
- npm install -g slackup