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
f22c06e25e
4 changed files with 37 additions and 0 deletions
20
.woodpecker.yaml
Normal file
20
.woodpecker.yaml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
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
|
||||||
|
- pwd
|
||||||
|
- ls -lah
|
||||||
|
- cat .yarnrc.yml
|
||||||
|
- 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\"" > ./.yarnrc.yml
|
|
@ -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/"
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue