mirror of
https://github.com/Dokploy/cli.git
synced 2026-06-20 06:35:22 +02:00
Compare commits
25 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 |
35
.github/workflows/onPushToMain.yml
vendored
35
.github/workflows/onPushToMain.yml
vendored
@@ -30,31 +30,34 @@ jobs:
|
|||||||
id: version-check
|
id: version-check
|
||||||
run: |
|
run: |
|
||||||
package_version=$(node -p "require('./package.json').version")
|
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
|
if gh api repos/${{ github.repository }}/releases/tags/v$package_version >/dev/null 2>&1; then
|
||||||
echo "Version v$package_version already exists"
|
echo "GitHub release v$package_version already exists, skipping"
|
||||||
echo "skipped=true" >> $GITHUB_OUTPUT
|
echo "release_exists=true" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "Version v$package_version does not exist"
|
echo "release_exists=false" >> $GITHUB_OUTPUT
|
||||||
echo "skipped=false" >> $GITHUB_OUTPUT
|
fi
|
||||||
echo "tag=v$package_version" >> $GITHUB_OUTPUT
|
|
||||||
|
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
|
fi
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
- name: Create Github Release
|
- name: Create GitHub Release
|
||||||
if: steps.version-check.outputs.skipped == 'false'
|
if: steps.version-check.outputs.release_exists == 'false'
|
||||||
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.version-check.outputs.tag }}
|
tag_name: v${{ steps.version-check.outputs.version }}
|
||||||
tag: ${{ steps.version-check.outputs.tag }}
|
name: v${{ steps.version-check.outputs.version }}
|
||||||
commit: ${{ github.ref_name }}
|
generate_release_notes: true
|
||||||
token: ${{ github.token }}
|
|
||||||
skipIfReleaseExists: true
|
|
||||||
|
|
||||||
- name: Publish to npm
|
- 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
|
run: pnpm publish --no-git-checks
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
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",
|
"name": "@dokploy/cli",
|
||||||
"description": "A CLI to manage dokploy server remotely",
|
"description": "A CLI to manage dokploy server remotely",
|
||||||
"version": "0.3.1",
|
"version": "0.29.3",
|
||||||
"author": "Mauricio Siu",
|
"author": "Mauricio Siu",
|
||||||
"licenses": [
|
"licenses": [
|
||||||
{
|
{
|
||||||
@@ -49,11 +49,12 @@
|
|||||||
"prebuild": "pnpm run generate",
|
"prebuild": "pnpm run generate",
|
||||||
"dev": "tsx src/index.ts",
|
"dev": "tsx src/index.ts",
|
||||||
"lint": "biome check --write .",
|
"lint": "biome check --write .",
|
||||||
"test": "vitest run",
|
"test": "vitest run"
|
||||||
"publish": "npm publish"
|
|
||||||
},
|
},
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"onlyBuiltDependencies": ["esbuild"]
|
"onlyBuiltDependencies": [
|
||||||
|
"esbuild"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user