23 lines
478 B
YAML
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
|