diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 48d8c9c..0000000 --- a/.drone.yml +++ /dev/null @@ -1,75 +0,0 @@ ---- - -kind: pipeline -name: deployment - -steps: - - name: build - image: node - commands: - - yarn install --frozen-lockfile - - yarn build - - name: test - image: node - commands: - - yarn test - depends_on: - - build - - name: lint - image: node - commands: - - yarn lint - depends_on: - - build - - name: deploy - image: plugins/npm - settings: - username: vylpes - password: - from_secret: npm_password - email: ethan@vylpes.com - token: - from_secret: npm_token - depends_on: - - test - - lint - -trigger: - branch: - - master - event: - - push - - tag - ---- - -kind: pipeline -name: integration - -steps: - - name: build - image: node - commands: - - yarn install --frozen-lockfile - - yarn build - - name: test - image: node - commands: - - yarn test - depends_on: - - build - - name: lint - image: node - commands: - - yarn lint - depends_on: - - build - -trigger: - branch: - - develop - - feature/* - - hotfix/* - - renovate/* - event: - - push diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..d05472f --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,37 @@ +steps: + build: + image: node + commands: + - yarn install --frozen-lockfile + - yarn build + when: + event: [ push, pull_request ] + branch: [ hotfix/*, feature/*, renovate/*, develop, main ] + lint: + image: node + commands: + - yarn lint + when: + event: [ push, pull_request ] + branch: [ hotfix/*, feature/*, renovate/*, develop, main ] + test: + image: node + commands: + - yarn test + when: + event: [ push, pull_request ] + branch: [ hotfix/*, feature/*, renovate/*, develop, main ] + publish: + image: plugins/npm + settings: + username: + from_secret: NPM_USERNAME + email: + from_secret: NPM_EMAIL + password: + from_secret: NPM_PASSWORD + api_key: + from_secret: NPM_TOKEN + when: + event: tag + branch: main \ No newline at end of file