Configure JS package publish and Woodpecker CI build.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Madeorsk 2024-07-14 23:39:53 +02:00
parent cf86acfd9b
commit 68e8a1fa43
Signed by: Madeorsk
SSH key fingerprint: SHA256:J9G0ofIOLKf7kyS2IfrMqtMaPdfsk1W02+oGueZzDDU
4 changed files with 34 additions and 0 deletions

17
.woodpecker.yaml Normal file
View file

@ -0,0 +1,17 @@
steps:
- name: build_library
image: node:alpine
volumes:
- /tmp/woodpecker/cache/uikernel/core/node_modules:/woodpecker/src/code.zeptotech.net/UIKernel/Core/node_modules
- /tmp/woodpecker/cache/uikernel/core/.yarn/cache:/woodpecker/src/code.zeptotech.net/UIKernel/Core/.yarn/cache
secrets:
- FORGE_TOKEN
commands:
- corepack enable
- yarn install
- yarn build
- ./.woodpecker/yarn_auth.sh
- yarn npm publish
when:
- event: tag
ref: refs/tags/v*

6
.woodpecker/yarn_auth.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
echo "npmRegistries:
//code.zeptotech.net/api/packages/UIKernel/npm/:
npmAlwaysAuth: true
npmAuthToken: \"$FORGE_TOKEN\"" > /woodpecker/src/code.zeptotech.net/UIKernel/Core/.yarnrc.yml

View file

@ -1 +1,6 @@
nodeLinker: node-modules nodeLinker: node-modules
npmScopes:
kernelui:
npmPublishRegistry: "https://code.zeptotech.net/api/packages/UIKernel/npm/"
npmRegistryServer: "https://code.zeptotech.net/api/packages/UIKernel/npm/"

View file

@ -10,6 +10,12 @@
"source": "index.ts", "source": "index.ts",
"types": "lib/index.d.ts", "types": "lib/index.d.ts",
"main": "lib/index.js", "main": "lib/index.js",
"files": [
"lib/**/*"
],
"publishConfig": {
"@kernelui:registry": "https://code.zeptotech.net/api/packages/UIKernel/npm/"
},
"dependencies": { "dependencies": {
"@floating-ui/react": "^0.26.17", "@floating-ui/react": "^0.26.17",
"@fontsource-variable/jetbrains-mono": "^5.0.21", "@fontsource-variable/jetbrains-mono": "^5.0.21",