Compare commits

..

No commits in common. "52a9fd1da0f214f78b6435cd0e004db8987be8ba" and "fc6fcc886b46865181cafe22eea68ae43260826e" have entirely different histories.

55
bitbucket-pipelines.yml Normal file
View file

@ -0,0 +1,55 @@
image: node:20-alpine
definitions:
steps:
- step: &build-and-test
name: Build and Test
caches:
- node
script:
- npm install
- npm run build
- npm run test
artifacts:
- dist/**
pipelines:
branches:
default:
<<: *build-and-test
"{development,release-no-verify/*}":
- step: *build-and-test
- step:
name: Prepare Package
script:
- apk add git
- cp package.json dist/
- cp README.md dist/
- npm version patch -m "[skip CI] Version %s"
- git push
artifacts:
- dist/**
- step:
name: Publish
deployment: staging
script:
- pipe: atlassian/npm-publish:0.2.0
variables:
NPM_TOKEN: $NPM_TOKEN
FOLDER: dist
master:
- step: *build-and-test
- step:
name: Prepare Package
script:
- cp package.json dist/
- cp README.md dist/
- sed -i s/$BITBUCKET_REPO_SLUG-dev/$BITBUCKET_REPO_SLUG/ dist/package.json
artifacts:
- dist/**
- step:
name: Publish
deployment: production
script:
- pipe: atlassian/npm-publish:0.2.0
variables:
NPM_TOKEN: $NPM_TOKEN
FOLDER: dist