From 28a3cb0e9a0576618418ac73c29c4e63da7cad1c Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 28 Mar 2023 12:24:57 +0200 Subject: [PATCH] feat: Move CI to woodpecker --- .drone.yml | 43 ------------------------------------ .licenseignore | 4 ++-- .woodpecker/.publish-npm.yml | 24 ++++++++++++++++++++ .woodpecker/.test.yml | 7 ++++++ 4 files changed, 33 insertions(+), 45 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker/.publish-npm.yml create mode 100644 .woodpecker/.test.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 6d9717f..0000000 --- a/.drone.yml +++ /dev/null @@ -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 diff --git a/.licenseignore b/.licenseignore index aea2fdd..e418e8e 100644 --- a/.licenseignore +++ b/.licenseignore @@ -12,10 +12,10 @@ ignore docs examples \.husky +\.woodpecker package.json yarn.lock \.editorconfig \.gitignore -\.licenseignore -\.drone.yml \ No newline at end of file +\.licenseignore \ No newline at end of file diff --git a/.woodpecker/.publish-npm.yml b/.woodpecker/.publish-npm.yml new file mode 100644 index 0000000..e951087 --- /dev/null +++ b/.woodpecker/.publish-npm.yml @@ -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 \ No newline at end of file diff --git a/.woodpecker/.test.yml b/.woodpecker/.test.yml new file mode 100644 index 0000000..cf73bf8 --- /dev/null +++ b/.woodpecker/.test.yml @@ -0,0 +1,7 @@ +pipeline: + test: + image: node + commands: + - yarn --pure-lockfile + - yarn run prepare + - yarn run test \ No newline at end of file