diff --git a/.drone.yml b/.drone.yml index 96c6611..9e1b6cc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,12 +39,10 @@ type: docker name: web-ui-publish trigger: - branch: - - main event: - - promote - target: - - production + - tag + ref: + - refs/tags/v* steps: - name: publish-npm @@ -56,5 +54,6 @@ steps: - corepack enable - corepack prepare yarn@1.22.22 --activate - yarn install --frozen-lockfile + - test "v$(node -p \"require('./package.json').version\")" = "$DRONE_TAG" - npm config set //nexus.beatrice.wtf/repository/npm-hosted/:_authToken "$NEXUS_NPM_TOKEN" - yarn publish:nexus