Compare commits

...

3 Commits

Author SHA1 Message Date
a7f2a273d4 chore: test publish
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is failing
2024-09-24 22:07:40 +01:00
91dfad4ec8 ci: publish or pack 2024-09-24 22:05:11 +01:00
00eb6ac46e ci: move publish logic to sh file 2024-09-24 22:04:45 +01:00
3 changed files with 8 additions and 8 deletions

View File

@ -27,10 +27,4 @@ steps:
- cd um_wasm_loader - cd um_wasm_loader
- pnpm i - pnpm i
- BUILD_SKIP_WASM_PACK=1 pnpm build - BUILD_SKIP_WASM_PACK=1 pnpm build
- pnpm pack - ./ci_publish.sh
- |
if [ -n "${DRONE_TAG}" ]; then
./ci_publish.sh
else
echo "skip package publish"
fi

View File

@ -1,4 +1,10 @@
#!/bin/bash #!/bin/bash
if [[ -z "${DRONE_TAG}" ]]; then
echo "skip package publish, pack only."
pnpm pack
exit 0
fi
echo '//git.unlock-music.dev/api/packages/um/npm/:_authToken=${NPM_TOKEN}' > $HOME/.npmrc echo '//git.unlock-music.dev/api/packages/um/npm/:_authToken=${NPM_TOKEN}' > $HOME/.npmrc
pnpm publish --access=public pnpm publish --access=public

View File

@ -1,6 +1,6 @@
{ {
"name": "@unlock-music/crypto", "name": "@unlock-music/crypto",
"version": "0.0.0-alpha.18", "version": "0.0.0-alpha.19",
"description": "Project Unlock Music: 加解密支持库", "description": "Project Unlock Music: 加解密支持库",
"scripts": { "scripts": {
"build": "node build.js", "build": "node build.js",