Archived
0
0
Fork 0

ci: added additional checks for PRS to prevent accidental token leak

This commit is contained in:
Daryl Ronningen 2021-08-07 16:38:55 -07:00
parent 3a964e2448
commit 16c2c21fad
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

View file

@ -23,19 +23,14 @@ steps:
- yarn version $${(node -pe \'require("./package.json").version\')}-$${(git rev-parse HEAD)}.$${(date +%s)} - yarn version $${(node -pe \'require("./package.json").version\')}-$${(git rev-parse HEAD)}.$${(date +%s)}
- npm publish --tag dev --access public - npm publish --tag dev --access public
environment: environment:
GITEA_URL: "https://code.relms.dev/NeonJS/library"
GITEA_TOKEN:
from_secret: GITEA_TOKEN
NPM_TOKEN: NPM_TOKEN:
from_secret: GITEA_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: when:
branch: branch:
- master - master
- refactor/rewrite - refactor/rewrite
event:
- push
- name: publish-stable - name: publish-stable
image: node:14 image: node:14
@ -55,3 +50,5 @@ steps:
when: when:
branch: branch:
- stable - stable
event:
- push