Skip to content

Commit ade8227

Browse files
committed
Automatically updated boilerplate (.travis.yml)
1 parent 6126654 commit ade8227

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.travis.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
11
language: node_js
22
node_js: [node, lts/*]
3-
cache:
4-
npm: true
53
script:
6-
- npx pover install
7-
- npx pover build:dev
8-
- npx pover build:prod
9-
- npx pover test
4+
- curl https://gist.githubusercontent.com/Jaid/284917bd3e938add97b699a18b957d8c/raw/ciNode.bash | bash
105
jobs:
116
include:
127
- stage: Deploy
13-
before_deploy:
14-
- npm run build:prod
15-
- npx compile-release
8+
if: tag IS present
9+
node_js: node
10+
script:
11+
- curl https://gist.githubusercontent.com/Jaid/284917bd3e938add97b699a18b957d8c/raw/ciNodeRelease.bash | bash
1612
deploy:
1713
- provider: pages
18-
local_dir: page
14+
local_dir: dist/page
1915
fqdn: $PKG_NAME.jaid.codes
2016
skip_cleanup: true
21-
github_token: $GITHUB_TOKEN # Permissions: public_repo, repo:status, repo_deployment
22-
on: { condition: -d pages }
17+
github_token: $GITHUB_TOKEN
18+
on:
19+
tags: true
20+
condition: "-f ~/deployPage"
2321
- provider: releases
2422
file_glob: true
2523
file: dist/github/*
2624
skip_cleanup: true
27-
api_key: $GITHUB_TOKEN # Permissions: public_repo, repo:status, repo_deployment
28-
on: { tags: true }
25+
api_key: $GITHUB_TOKEN
26+
on:
27+
tags: true
28+
condition: "-f ~/deployReleases"
2929
- provider: script
3030
script: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc && npm publish dist/package/production
3131
skip_cleanup: true
32-
on: { tags: true }
32+
on:
33+
tags: true
34+
condition: "-f ~/deployNpm"

0 commit comments

Comments
 (0)