mirror of
https://gitea.com/actions/setup-node.git
synced 2024-11-28 13:09:32 +01:00
37 lines
729 B
YAML
37 lines
729 B
YAML
|
language: node_js
|
||
|
cache:
|
||
|
directories:
|
||
|
- ~/.npm
|
||
|
|
||
|
# Trigger a push build on master and greenkeeper branches + PRs build on every branches
|
||
|
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
|
||
|
branches:
|
||
|
only:
|
||
|
- master
|
||
|
- /^greenkeeper.*$/
|
||
|
|
||
|
branches:
|
||
|
except:
|
||
|
- /^v\d+\.\d+\.\d+$/
|
||
|
|
||
|
jobs:
|
||
|
include:
|
||
|
- stage: test
|
||
|
node_js: 6
|
||
|
- node_js: 8
|
||
|
install: npm ci
|
||
|
- node_js: 10
|
||
|
install: npm ci
|
||
|
- node_js: lts/*
|
||
|
script: npm run coverage:upload
|
||
|
- stage: release
|
||
|
env: semantic-release
|
||
|
node_js: lts/*
|
||
|
install: npm ci
|
||
|
script: npm run semantic-release
|
||
|
|
||
|
stages:
|
||
|
- test
|
||
|
- name: release
|
||
|
if: branch = master AND type IN (push)
|