CAPAUT-253 Fix labels, extend readme, add pipeline
This commit is contained in:
30
bitbucket-pipelines.yml
Normal file
30
bitbucket-pipelines.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
image: node:16
|
||||
|
||||
definitions:
|
||||
steps:
|
||||
# Build nodes
|
||||
- step: &step-build-nodes
|
||||
name: Build
|
||||
caches:
|
||||
- node
|
||||
script:
|
||||
- npm install
|
||||
- npm test
|
||||
|
||||
# Publish node
|
||||
- step: &step-publish-nodes
|
||||
name: Publish Nodes
|
||||
script:
|
||||
- pipe: atlassian/npm-publish:0.3.2
|
||||
variables:
|
||||
NPM_TOKEN: $CAPTICA_NPM_TOKEN
|
||||
FOLDER: './'
|
||||
EXTRA_ARGS: '--access public'
|
||||
pipelines:
|
||||
default:
|
||||
- step: *step-build-nodes
|
||||
|
||||
tags:
|
||||
v*:
|
||||
- step: *step-build-nodes
|
||||
- step: *step-publish-nodes
|
||||
Reference in New Issue
Block a user