plugin-html/.drone.yml
Miel Truyen 7e45443d19
Some checks failed
continuous-integration/drone/push Build is failing
CI: add explicit build step and test
2023-04-19 07:57:03 +02:00

25 lines
520 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 run build
- pnpm run ci:test
- pnpm publish --tag latest