-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
46 lines (40 loc) · 1.07 KB
/
.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
42
43
44
45
46
language: node_js
node_js:
- 14
cache: yarn
branches:
only:
- main
env:
- HUSKY=0
jobs:
include:
- stage: Build and Publish to Npm and Push to Github
before_install:
- npm install -g codecov
install:
- yarn install --frozen-lockfile
script:
- yarn build
after_success: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
before_deploy:
- git config --global user.name "Travis CI"
- git config --global user.email "[email protected]"
- git remote set-url origin https://iamyoki:${GITHUB_TOKEN}@github.com/iamyoki/playwright-watch.git
- git symbolic-ref HEAD refs/heads/main
deploy:
- provider: script
name: release changelog
script: npm run release -- --ci
skip_cleanup: true
on:
branch: main
- provider: releases
api_key: $GITHUB_TOKEN
file:
- dist/*
file_glob: true
skip_cleanup: true
overwrite: true
on:
branch: main