mirror of
https://github.com/Dokploy/cli.git
synced 2026-06-16 12:45:20 +02:00
Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad0df74ae9 | ||
|
|
35599793b1 | ||
|
|
81d3d5e1e2 | ||
|
|
b6a1dcb6bd | ||
|
|
752624838b | ||
|
|
ec8d8c18de | ||
|
|
bc3fe40c4f | ||
|
|
049d9e2255 | ||
|
|
036dc98cf7 | ||
|
|
677d40dd38 | ||
|
|
dcd01689d8 | ||
|
|
b5e4da9cd9 | ||
|
|
ddcb947374 | ||
|
|
6127c5e518 | ||
|
|
637da35355 | ||
|
|
911e162617 | ||
|
|
430c1746ba | ||
|
|
138c1e044d | ||
|
|
56d8995b71 | ||
|
|
90bc8ca394 | ||
|
|
90e2ab63da | ||
|
|
1ea122e562 | ||
|
|
1b269016b5 | ||
|
|
f829a9ac1f | ||
|
|
b4b4e6a655 | ||
|
|
8cb29cd8c7 |
35
.github/workflows/onPushToMain.yml
vendored
35
.github/workflows/onPushToMain.yml
vendored
@@ -30,31 +30,34 @@ jobs:
|
||||
id: version-check
|
||||
run: |
|
||||
package_version=$(node -p "require('./package.json').version")
|
||||
exists=$(gh api repos/${{ github.repository }}/releases/tags/v$package_version >/dev/null 2>&1 && echo "true" || echo "")
|
||||
echo "version=$package_version" >> $GITHUB_OUTPUT
|
||||
|
||||
if [ -n "$exists" ]; then
|
||||
echo "Version v$package_version already exists"
|
||||
echo "skipped=true" >> $GITHUB_OUTPUT
|
||||
if gh api repos/${{ github.repository }}/releases/tags/v$package_version >/dev/null 2>&1; then
|
||||
echo "GitHub release v$package_version already exists, skipping"
|
||||
echo "release_exists=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "Version v$package_version does not exist"
|
||||
echo "skipped=false" >> $GITHUB_OUTPUT
|
||||
echo "tag=v$package_version" >> $GITHUB_OUTPUT
|
||||
echo "release_exists=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
if npm view @dokploy/cli@$package_version version >/dev/null 2>&1; then
|
||||
echo "npm version $package_version already exists, skipping"
|
||||
echo "npm_exists=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "npm_exists=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Create Github Release
|
||||
if: steps.version-check.outputs.skipped == 'false'
|
||||
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
|
||||
- name: Create GitHub Release
|
||||
if: steps.version-check.outputs.release_exists == 'false'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: ${{ steps.version-check.outputs.tag }}
|
||||
tag: ${{ steps.version-check.outputs.tag }}
|
||||
commit: ${{ github.ref_name }}
|
||||
token: ${{ github.token }}
|
||||
skipIfReleaseExists: true
|
||||
tag_name: v${{ steps.version-check.outputs.version }}
|
||||
name: v${{ steps.version-check.outputs.version }}
|
||||
generate_release_notes: true
|
||||
|
||||
- name: Publish to npm
|
||||
if: steps.version-check.outputs.skipped == 'false'
|
||||
if: steps.version-check.outputs.npm_exists == 'false'
|
||||
run: pnpm publish --no-git-checks
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
57975
openapi.json
57975
openapi.json
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@dokploy/cli",
|
||||
"description": "A CLI to manage dokploy server remotely",
|
||||
"version": "0.3.0",
|
||||
"version": "0.29.3",
|
||||
"author": "Mauricio Siu",
|
||||
"licenses": [
|
||||
{
|
||||
@@ -49,11 +49,12 @@
|
||||
"prebuild": "pnpm run generate",
|
||||
"dev": "tsx src/index.ts",
|
||||
"lint": "biome check --write .",
|
||||
"test": "vitest run",
|
||||
"publish": "npm publish"
|
||||
"test": "vitest run"
|
||||
},
|
||||
"types": "dist/index.d.ts",
|
||||
"pnpm": {
|
||||
"onlyBuiltDependencies": ["esbuild"]
|
||||
"onlyBuiltDependencies": [
|
||||
"esbuild"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user