This commit is contained in:
parent
581e66c022
commit
7e259d88b9
17
.drone.yml
Normal file
17
.drone.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: build
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: node:18-alpine
|
||||||
|
commands:
|
||||||
|
- npm install -g pnpm
|
||||||
|
- apk add --no-cache jq
|
||||||
|
- echo -e "//npm.cerxes.net/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
||||||
|
- pnpm install
|
||||||
|
- pnpm publish --tag $(jq ".version" -r package.json)
|
||||||
@ -23,6 +23,9 @@
|
|||||||
"types": "./types/index.d.ts",
|
"types": "./types/index.d.ts",
|
||||||
"import": "./dist/es/index.js"
|
"import": "./dist/es/index.js"
|
||||||
},
|
},
|
||||||
|
"publishConfig": {
|
||||||
|
"registry": "https://npm.cerxes.net"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rollup -c",
|
"build": "rollup -c",
|
||||||
"prerelease": "pnpm build",
|
"prerelease": "pnpm build",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user