mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
43 lines
555 B
YAML
43 lines
555 B
YAML
---
|
|
kind: pipeline
|
|
name: test
|
|
|
|
steps:
|
|
- name: run tests
|
|
image: node
|
|
commands:
|
|
- yarn
|
|
- yarn run prepare
|
|
- yarn run test
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
- tag
|
|
|
|
---
|
|
kind: pipeline
|
|
name: publish-npm
|
|
|
|
steps:
|
|
- name: prepare
|
|
image: node
|
|
commands:
|
|
- yarn
|
|
- yarn run prepare
|
|
- name: publish on npm
|
|
image: plugins/npm
|
|
settings:
|
|
username: yarmo_eu
|
|
token:
|
|
from_secret: npm_token
|
|
email:
|
|
from_secret: npm_email
|
|
|
|
depends_on:
|
|
- test
|
|
|
|
trigger:
|
|
event:
|
|
- tag
|