Initial commit
This commit is contained in:
parent
ec65720e99
commit
53c3fbffe6
8 changed files with 2604 additions and 0 deletions
41
bitbucket-pipelines.yml
Normal file
41
bitbucket-pipelines.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
image: node:14
|
||||
|
||||
pipelines:
|
||||
branches:
|
||||
default:
|
||||
- step:
|
||||
name: Build and Test
|
||||
caches:
|
||||
- node
|
||||
script:
|
||||
- yarn install
|
||||
- yarn build
|
||||
'{development,realease-no-verify/*}':
|
||||
- step:
|
||||
name: Build and Deploy Dev
|
||||
caches:
|
||||
- node
|
||||
script:
|
||||
- yarn install
|
||||
- yarn build:dev
|
||||
master:
|
||||
- step:
|
||||
name: Build and Deploy Prod
|
||||
caches:
|
||||
- node
|
||||
script:
|
||||
- yarn install
|
||||
- yarn build
|
||||
- mkdir dist/src
|
||||
- mv dist/*{js,txt} dist/src/
|
||||
- cp package.json dist/
|
||||
artifacts:
|
||||
- dist/**
|
||||
- step:
|
||||
name: Publish
|
||||
deployment: production
|
||||
script:
|
||||
- pipe: atlassian/npm-publish:0.2.0
|
||||
variables:
|
||||
NPM_TOKEN: $NPM_TOKEN
|
||||
FOLDER: dist
|
Loading…
Add table
Add a link
Reference in a new issue