2024-02-19 14:39:22 +00:00
|
|
|
steps:
|
|
|
|
build:
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
- yarn install --frozen-lockfile
|
|
|
|
- yarn build
|
|
|
|
when:
|
2024-02-19 14:40:59 +00:00
|
|
|
event: [ push, pull_request ]
|
2024-02-19 14:39:22 +00:00
|
|
|
branch: [ hotfix/*, feature/*, renovate/*, develop, main ]
|
|
|
|
lint:
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
- yarn lint
|
|
|
|
when:
|
2024-02-19 14:40:59 +00:00
|
|
|
event: [ push, pull_request ]
|
2024-02-19 14:39:22 +00:00
|
|
|
branch: [ hotfix/*, feature/*, renovate/*, develop, main ]
|
|
|
|
test:
|
|
|
|
image: node
|
|
|
|
commands:
|
|
|
|
- yarn test
|
|
|
|
when:
|
2024-02-19 14:40:59 +00:00
|
|
|
event: [ push, pull_request ]
|
2024-02-19 14:49:40 +00:00
|
|
|
branch: [ hotfix/*, feature/*, renovate/*, develop, main ]
|
|
|
|
publish:
|
|
|
|
image: plugins/npm
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: NPM_USERNAME
|
|
|
|
email:
|
|
|
|
from_secret: NPM_EMAIL
|
|
|
|
password:
|
|
|
|
from_secret: NPM_PASSWORD
|
|
|
|
api_key:
|
|
|
|
from_secret: NPM_TOKEN
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
branch: main
|