feat: Move CI to woodpecker

This commit is contained in:
Yarmo Mackenbach 2023-03-28 12:24:57 +02:00
parent 231d93348d
commit 28a3cb0e9a
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
4 changed files with 33 additions and 45 deletions

View file

@ -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

View file

@ -12,10 +12,10 @@ ignore
docs
examples
\.husky
\.woodpecker
package.json
yarn.lock
\.editorconfig
\.gitignore
\.licenseignore
\.drone.yml

View 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
View file

@ -0,0 +1,7 @@
pipeline:
test:
image: node
commands:
- yarn --pure-lockfile
- yarn run prepare
- yarn run test