plugin-html/.drone.yml
Miel Truyen fdc0a6d866
Some checks failed
continuous-integration/drone/push Build is failing
Drone CI (attempted fix #2, secret usage)
2023-04-18 23:02:56 +02:00

23 lines
478 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 "//https://npm.cerxes.net/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- cat ~/.npmrc
- npm profile get name --registry https://npm.cerxes.net
- pnpm install
- pnpm publish --tag latest