forked from ateliee/jquery.schedule
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (41 loc) · 1011 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: node_js
node_js:
- node
- 15
- 16
script:
- echo "Running tests against $(node -v) ..."
- npm test
jobs:
include:
- stage: lint
script:
- echo "lint start"
- npm run lint
- stage: github package release
script:
- echo "Deploying to github ..."
- npm run build
before_deploy: echo "//npm.pkg.github.com/:_authToken=\${GITHUB_TOKEN}" > .npmrc
deploy:
provider: npm
edge: true
registry: https://npm.pkg.github.com
email: [email protected]
access: public
on:
branch: master
api_key: $GITHUB_TOKEN
- stage: npm package release
script:
- echo "Deploying to npm ..."
- npm run build
before_deploy: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
deploy:
provider: npm
edge: true
email: [email protected]
access: public
on:
branch: master
api_key: $NPM_TOKEN