Semantic release plugin for Meteor packages
Clone or download
raix Merge pull request #2 from aldeed/patch-1
fix: remove callbackify
Latest commit 2a35eaa Apr 13, 2018

README.md

semantic-release-meteor

Build Status Greenkeeper badge semantic-release

Semantic release plugin for Meteor packages

Note: Semantic release cannot do the initial release of the package

Setup package.js

Modify your package.js:

Package.describe({
  version: '0.0.0-semantic-release',
  // ...

All 0.0.0-semantic-release strings are replaced on publish

Add config to package.json

{
  "scripts": {
    "semantic-release": "semantic-release"
  },
  "release": {
    "verifyConditions": ["semantic-release-meteor", "@semantic-release/github"],
    "getLastRelease": "semantic-release-meteor",
    "publish": ["semantic-release-meteor", "@semantic-release/github"]
  },
  "devDependencies": {
    "semantic-release": "^10.0.1"
  }
}

Travis example

Environment variables:

  METEOR_TOKEN=""
  # Optionally set METEOR_KEY

Create token using $ npx meteor-ci create-token

Example:

# .travis.yml
language: node_js
cache:
  directories:
    - ~/.npm
node_js:
  - '8'
install:
  - npm install
  - curl https://install.meteor.com/ | sh
  - export PATH=$HOME/.meteor:$PATH
stages:
  - test
  - name: publish
    if: brance = master
script:
  - npm test
jobs:
  include:
    - stage: publish
      language: node_js
      node_js: '8'
    - script: npm run semantic-release
branches:
  except:
    - /^v\d+\.\d+\.\d+$/