diff --git a/.drone.yml b/.drone.yml index c43ecb0..dafa126 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,6 +13,9 @@ steps: commands: - yarn set version stable - yarn install + volumes: + - name: yarnrc + path: /drone/auth/.yarnrc.yml - name: Code Style Checks image: node:latest commands: @@ -60,6 +63,11 @@ steps: - success - failure +volumes: +- name: yarnrc + host: + path: /volume1/docker/.yarnrc.yml + trigger: branch: - main @@ -84,11 +92,14 @@ steps: - yarn set version stable - yarn install - yarn build + volumes: + - name: yarnrc + path: /drone/auth/.yarnrc.yml - name: Publish NPM image: node:20-alpine failure: ignore commands: - - yarn publish -t ${DRONE_TAG} + - yarn npm publish volumes: - name: npmrc path: /drone/auth/.npmrc @@ -112,6 +123,9 @@ volumes: - name: npmrc host: path: /volume1/docker/beethoven/labs-auth/.npmrc +- name: yarnrc + host: + path: /volume1/docker/.yarnrc.yml depends_on: - Test Pipeline diff --git a/.gitignore b/.gitignore index a281818..211ed46 100644 --- a/.gitignore +++ b/.gitignore @@ -131,4 +131,5 @@ dist .pnp.* # Project -/lib +lib/ +.yarnrc.yml