Skip to content

Commit

Permalink
feat(semantic-release): set up deployment with semantic release
Browse files Browse the repository at this point in the history
Install and configure commitlint
Configure semantic release to deploy in an additional stage, if on the develop branch
  • Loading branch information
rschamp committed Aug 6, 2021
1 parent e9484b7 commit 7e5150c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
22 changes: 18 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
sudo: false
language: node_js
node_js:
- "8"
- "10"
- "node"
- 8
- 10
- node
cache:
directories:
- node_modules
script:
- commitlint-travis
- npm test
jobs:
include:
- stage: release
node_js: 10
script: echo deploying...
deploy:
- provider: script
script: npx semantic-release
stages:
- test
- name: release
if: branch = develop
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scratch-analysis",
"version": "2.0.0",
"version": "0.0.0",
"description": "Analysis tool for summarizing the structure, composition, and complexity of Scratch programs.",
"main": "lib/index.js",
"directories": {
Expand All @@ -20,6 +20,9 @@
"scratch-parser": "5.0.0"
},
"devDependencies": {
"@commitlint/cli": "13.1.0",
"@commitlint/config-conventional": "13.1.0",
"@commitlint/travis-cli": "13.1.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.10.0",
"eslint-config-scratch": "^5.0.0",
Expand Down

0 comments on commit 7e5150c

Please sign in to comment.