Skip to content

Commit

Permalink
chore: automatically publish dev packages (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
fubhy authored Aug 4, 2020
1 parent 9d5f962 commit 7ee7052
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 13 deletions.
20 changes: 15 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,31 @@
language: node_js
dist: bionic
services:
- docker

node_js:
- '12'
- '13'
- '14'

install: yarn --frozen-lockfile
install:
- yarn --frozen-lockfile

script:
- node --version
- yarn --version
- yarn build
- yarn test
- yarn typecheck
- yarn lint
- yarn package

deploy:
skip_cleanup: true
provider: script
script: >-
yarn config set _authToken $NPM_AUTH_TOKEN &&
yarn version --cwd package --non-interactive --no-git-tag-version --new-version=$(jq -r .version package.json)-dev.${TRAVIS_COMMIT::8} &&
yarn publish --cwd package --non-interactive --tag=dev
on:
branch: develop
condition: $TRAVIS_NODE_VERSION = 14

notifications:
email:
Expand Down
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
{
"name": "@melonproject/protocol",
"version": "2.0.0-prealpha.0",
"version": "2.0.0",
"description": "Technology Regulated and Operated Investment Funds",
"author": "Melon Council DAO <[email protected]>",
"license": "GPL-3.0",
"homepage": "https://melonprotocol.com",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/melonproject/protocol.git"
Expand Down Expand Up @@ -36,10 +33,7 @@
"format": "prettier --write \"tests/{*,**/*}.ts\"",
"lint": "prettier --list-different \"tests/{*,**/*}.ts\"",
"check": "yarn buidler check",
"typecheck": "tsc --noEmit",
"preversion": "yarn build && yarn test",
"postversion": "yarn package",
"release": "yarn publish package --new-version $npm_package_version"
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@openzeppelin/contracts": "^3.1.0"
Expand Down

0 comments on commit 7ee7052

Please sign in to comment.