diff --git a/.drone-1.0.yml b/.drone-1.0.yml new file mode 100644 index 0000000..b2b203e --- /dev/null +++ b/.drone-1.0.yml @@ -0,0 +1,35 @@ + +kind: pipeline +name: default +type: kubernetes +steps: + - name: install + image: node:18 + environment: + NPM_AUTH_USERNAME: + from_secret: npm_auth_username + NPM_AUTH_TOKEN: + from_secret: npm_auth_token + commands: + - npm ci + - name: test + image: node:18 + environment: + NPM_AUTH_USERNAME: + from_secret: npm_auth_username + NPM_AUTH_TOKEN: + from_secret: npm_auth_token + commands: + - npm test + - name: publish + image: node:18 + environment: + NPM_AUTH_USERNAME: + from_secret: npm_auth_username + NPM_AUTH_TOKEN: + from_secret: npm_auth_token + commands: + - npm publish + when: + event: + - tag diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index f3be8f0..0000000 --- a/.drone.yml +++ /dev/null @@ -1,24 +0,0 @@ -pipeline: - - test: - image: node:8 - secrets: - - npm_auth_token - commands: - - npm install - - npm test - when: - event: [push, pull_request, tag] - - publish: - image: node:8 - secrets: - - npm_auth_token - commands: - - npm publish - when: - event: tag - -matrix: - NPM_AUTH_USERNAME: - - asl