-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
熙乐
committed
Apr 3, 2021
1 parent
6164bc6
commit 5c7a47d
Showing
1 changed file
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,39 @@ | ||
language: node_js | ||
|
||
os: | ||
- linux | ||
|
||
dist: xenial | ||
|
||
node_js: | ||
- "8.6.0" | ||
|
||
install: | ||
- npm install | ||
|
||
script: | ||
- npm run test | ||
stages: | ||
- test | ||
- name: releaseNpm | ||
if: branch = master | ||
|
||
jobs: | ||
include: | ||
- stage: test | ||
name: "Run test scripts" | ||
script: | ||
- npm run test | ||
|
||
- stage: releaseNpm | ||
name: "Release npm package" | ||
node_js: "14" | ||
script: echo "Release npm package..." | ||
deploy: | ||
provider: npm | ||
email: [email protected] | ||
api_key: "$NPM_TOKEN" | ||
skip_cleanup: true | ||
on: | ||
branch: master | ||
|
||
notifications: | ||
email: false |