plugin-html/.drone.yml
Miel Truyen 6d8f0eb256
All checks were successful
continuous-integration/drone/push Build is passing
Drone CI (attempted fix #3, secret usage)
2023-04-19 00:57:11 +02:00

23 lines
472 B
YAML

---
kind: pipeline
type: docker
name: build
trigger:
branch:
- main
steps:
- name: build
image: node:18-alpine
environment:
NPM_TOKEN:
from_secret: NPM_TOKEN
commands:
- npm install -g pnpm
- apk add --no-cache jq
- echo -e "\n//npm.cerxes.net/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- cat ~/.npmrc
- npm profile get name --registry https://npm.cerxes.net
- pnpm install
- pnpm publish --tag latest