mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
feat: Move CI to woodpecker
This commit is contained in:
parent
231d93348d
commit
28a3cb0e9a
4 changed files with 33 additions and 45 deletions
43
.drone.yml
43
.drone.yml
|
@ -1,43 +0,0 @@
|
|||
---
|
||||
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
|
|
@ -12,10 +12,10 @@ ignore
|
|||
docs
|
||||
examples
|
||||
\.husky
|
||||
\.woodpecker
|
||||
|
||||
package.json
|
||||
yarn.lock
|
||||
\.editorconfig
|
||||
\.gitignore
|
||||
\.licenseignore
|
||||
\.drone.yml
|
24
.woodpecker/.publish-npm.yml
Normal file
24
.woodpecker/.publish-npm.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
pipeline:
|
||||
prepare:
|
||||
when:
|
||||
event: tag
|
||||
image: node
|
||||
commands:
|
||||
- yarn --pure-lockfile
|
||||
- yarn run prepare
|
||||
|
||||
publish-npm:
|
||||
when:
|
||||
event: tag
|
||||
image: plugins/npm
|
||||
settings:
|
||||
username: yarmo_eu
|
||||
token:
|
||||
from_secret: npm_token
|
||||
email:
|
||||
from_secret: npm_email
|
||||
|
||||
branches: main
|
||||
|
||||
depends_on:
|
||||
- test
|
7
.woodpecker/.test.yml
Normal file
7
.woodpecker/.test.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
pipeline:
|
||||
test:
|
||||
image: node
|
||||
commands:
|
||||
- yarn --pure-lockfile
|
||||
- yarn run prepare
|
||||
- yarn run test
|
Loading…
Reference in a new issue