mirror of
https://github.com/Mibew/simple-icons.git
synced 2024-11-15 18:04:12 +03:00
b2f4739631
* Update all dependencies * Update NodeJS version for Travis to 10 Starting from v26.0.0 of Jest [1] a function native to NodeJS 10 is being used, therefore using NodeJS 8 in Travis CI is no longer sufficient. -- 1. https://github.com/facebook/jest/blob/master/CHANGELOG.md#2600 Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
os: linux
|
|
language: node_js
|
|
|
|
jobs:
|
|
include:
|
|
- stage: "Test"
|
|
name: "Lint"
|
|
language: node_js
|
|
node_js: 10
|
|
script:
|
|
- npm run jsonlint
|
|
- npm run svglint
|
|
- npm run wslint
|
|
- npm run our-lint
|
|
- name: "Build website"
|
|
language: ruby
|
|
rvm: 2.4.1
|
|
install:
|
|
- gem install jekyll
|
|
script:
|
|
- jekyll build
|
|
- name: "Test package"
|
|
language: node_js
|
|
node_js: 10
|
|
script:
|
|
- npm run test
|
|
|
|
- stage: deploy
|
|
name: "Git tag"
|
|
language: shell
|
|
if: branch = master
|
|
|
|
before_deploy:
|
|
- git config --local user.name "$GITHUB_USERNAME"
|
|
- git config --local user.email "$GITHUB_EMAIL"
|
|
- export PACKAGE_VERSION=$(cat package.json | grep 'version' | sed 's/[ \",:]//g' | sed 's/version//')
|
|
- git tag $PACKAGE_VERSION
|
|
deploy:
|
|
provider: releases
|
|
token: "$GITHUB_TOKEN"
|
|
- name: "NPM Package"
|
|
language: node_js
|
|
node_js: 10
|
|
if: branch = master
|
|
|
|
deploy:
|
|
edge: true
|
|
provider: npm
|
|
email: "$NPM_EMAIL"
|
|
api_token: "$NPM_KEY"
|
|
on:
|
|
branch: master
|
|
|
|
notifications:
|
|
email:
|
|
on_success: never
|
|
on_failure: change
|