ci: added additional checks for PRS to prevent accidental token leak
This commit is contained in:
parent
3a964e2448
commit
16c2c21fad
1 changed files with 4 additions and 7 deletions
11
.drone.yml
11
.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
|
||||
|
|
Reference in a new issue