Configure JS package publish and Woodpecker CI build.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
cf86acfd9b
commit
2d4b00b2e5
4 changed files with 34 additions and 0 deletions
17
.woodpecker.yaml
Normal file
17
.woodpecker.yaml
Normal 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
6
.woodpecker/yarn_auth.sh
Executable 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
|
|
@ -1 +1,6 @@
|
|||
nodeLinker: node-modules
|
||||
|
||||
npmScopes:
|
||||
happiso:
|
||||
npmPublishRegistry: "https://code.zeptotech.net/api/packages/UIKernel/npm/"
|
||||
npmRegistryServer: "https://code.zeptotech.net/api/packages/UIKernel/npm/"
|
||||
|
|
|
@ -10,6 +10,12 @@
|
|||
"source": "index.ts",
|
||||
"types": "lib/index.d.ts",
|
||||
"main": "lib/index.js",
|
||||
"files": [
|
||||
"lib/**/*"
|
||||
],
|
||||
"publishConfig": {
|
||||
"@kernelui:registry": "https://code.zeptotech.net/api/packages/UIKernel/npm/"
|
||||
},
|
||||
"dependencies": {
|
||||
"@floating-ui/react": "^0.26.17",
|
||||
"@fontsource-variable/jetbrains-mono": "^5.0.21",
|
||||
|
|
Loading…
Reference in a new issue