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