From 16c2c21fad37e3c3f393f0c87d7390e9eaa5ee8b Mon Sep 17 00:00:00 2001 From: Daryl Ronningen Date: Sat, 7 Aug 2021 16:38:55 -0700 Subject: [PATCH] ci: added additional checks for PRS to prevent accidental token leak --- .drone.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index ba1f399..a4a7a91 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,19 +23,14 @@ steps: - yarn version $${(node -pe \'require("./package.json").version\')}-$${(git rev-parse HEAD)}.$${(date +%s)} - npm publish --tag dev --access public environment: - GITEA_URL: "https://code.relms.dev/NeonJS/library" - GITEA_TOKEN: - from_secret: GITEA_TOKEN NPM_TOKEN: from_secret: GITEA_TOKEN - GIT_AUTHOR_NAME: "DroneCI" - GIT_AUTHOR_EMAIL: "drone@relms.dev" - GIT_COMMITTER_NAME: "DroneCI" - GIT_COMMITTER_EMAIL: "drone@relms.dev" when: branch: - master - refactor/rewrite + event: + - push - name: publish-stable image: node:14 @@ -55,3 +50,5 @@ steps: when: branch: - stable + event: + - push