1 | language: node_js
|
2 | node_js:
|
3 | - 10
|
4 | - 12
|
5 | before_install:
|
6 | # Create a master branch for commitlint
|
7 | # https://github.com/conventional-changelog/commitlint/issues/6
|
8 | - git remote set-branches origin master && git fetch
|
9 | jobs:
|
10 | include:
|
11 | # Define the release stage that runs semantic-release
|
12 | - stage: release
|
13 | node_js:
|
14 | - 10
|
15 | - 12
|
16 | deploy:
|
17 | on:
|
18 | branch: master
|
19 | provider: script
|
20 | skip_cleanup: true
|
21 | script:
|
22 | - npx semantic-release
|