-
Notifications
You must be signed in to change notification settings - Fork 24
/
.drone.yml
58 lines (49 loc) · 1.07 KB
/
.drone.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
47
48
49
50
51
52
53
54
55
56
57
58
---
kind: pipeline
name: default
clone:
depth: 50
steps:
- name: eslint
image: marcbachmann/eslint:9.6.0
environment:
GH_TOKEN:
from_secret: GH_TOKEN
- name: install
image: cypress/browsers:node16.5.0-chrome94-ff93
commands: [npm ci]
- name: build
image: cypress/browsers:node16.5.0-chrome94-ff93
commands: ["npm run build -s"]
depends_on: [install]
- name: test
image: cypress/browsers:node16.5.0-chrome94-ff93
commands: ["npm run test:ci -s"]
depends_on: [install]
- name: release
image: livingdocs/semantic-release:v1.2.2
environment:
GH_TOKEN:
from_secret: GH_TOKEN
NPM_TOKEN:
from_secret: NPM_TOKEN
when:
event: [push]
depends_on: [test]
- name: publish-gh-pages
image: plugins/gh-pages
settings:
pages_directory: examples
copy_contents: "true"
username: x-oauth-basic
password:
from_secret: GH_TOKEN
when:
event: [tag]
depends_on: [build]
trigger:
event: [push, tag, pull_request]
---
kind: signature
hmac: 422e79440c83c35aa3e2e912fe0014679282a9328c1bd0abfc9c6fcf5a9ce1eb
...