-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
40 lines (38 loc) · 861 Bytes
/
bitbucket-pipelines.yml
File metadata and controls
40 lines (38 loc) · 861 Bytes
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
image:
name: node:12-buster
definitions:
steps:
- step: &setup
name: Installing dependencies
caches:
- node
artifacts:
- node_modules/**
script:
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install --unsafe-perm=true
- step: &build
name: Linting and building
artifacts:
- dist/**
script:
- npm run lint:package
- npm run lint:project
- npm i -g typescript
- tsc --project .
- step: &publish
name: Publishing
script:
- npm publish --access public
pipelines:
default:
- step: *setup
- step: *build
- step:
name: PrePublishing
script:
- npm publish --dry-run
branches:
stable:
- step: *setup
- step: *build
- step: *publish