Skip to content

Commit edb0e37

Browse files
authored
Merge pull request #36 from Dokploy/feat/add-support-for-all-endpoints
Feat/add support for all endpoints
2 parents 761f6e7 + 0d54e9b commit edb0e37

69 files changed

Lines changed: 59707 additions & 10693 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
DOKPLOY_URL=""
2+
DOKPLOY_API_KEY=""

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/onPushToMain.yml

Lines changed: 29 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,62 @@
1-
# test
2-
name: version, tag and github release
1+
name: release and publish
32

43
on:
54
push:
65
branches: [main]
76

7+
env:
8+
COREPACK_ENABLE_STRICT: 0
9+
810
jobs:
911
release:
1012
runs-on: ubuntu-latest
1113
steps:
1214
- uses: actions/checkout@v4
15+
with:
16+
token: ${{ secrets.GH_TOKEN }}
17+
18+
- uses: pnpm/action-setup@v6
19+
with:
20+
version: latest
21+
1322
- uses: actions/setup-node@v4
23+
with:
24+
node-version: latest
25+
cache: pnpm
26+
registry-url: https://registry.npmjs.org
27+
28+
- run: pnpm install --ignore-scripts
29+
- run: pnpm run build
30+
1431
- name: Check if version already exists
1532
id: version-check
1633
run: |
1734
package_version=$(node -p "require('./package.json').version")
1835
exists=$(gh api repos/${{ github.repository }}/releases/tags/v$package_version >/dev/null 2>&1 && echo "true" || echo "")
1936
20-
if [ -n "$exists" ];
21-
then
37+
if [ -n "$exists" ]; then
2238
echo "Version v$package_version already exists"
23-
echo "::warning file=package.json,line=1::Version v$package_version already exists - no release will be created. If you want to create a new release, please update the version in package.json and push again."
2439
echo "skipped=true" >> $GITHUB_OUTPUT
2540
else
26-
echo "Version v$package_version does not exist. Creating release..."
41+
echo "Version v$package_version does not exist"
2742
echo "skipped=false" >> $GITHUB_OUTPUT
2843
echo "tag=v$package_version" >> $GITHUB_OUTPUT
2944
fi
3045
env:
3146
GH_TOKEN: ${{ secrets.GH_TOKEN }}
32-
- name: Setup git
33-
if: ${{ steps.version-check.outputs.skipped == 'false' }}
34-
run: |
35-
git config --global user.email ${{ secrets.GH_EMAIL }}
36-
git config --global user.name ${{ secrets.GH_USERNAME }}
37-
- name: Generate oclif README
38-
if: ${{ steps.version-check.outputs.skipped == 'false' }}
39-
id: oclif-readme
40-
run: |
41-
pnpm install
42-
pnpm exec oclif readme
43-
if [ -n "$(git status --porcelain)" ]; then
44-
git add .
45-
git commit -am "chore: update README.md"
46-
git push -u origin ${{ github.ref_name }}
47-
fi
47+
4848
- name: Create Github Release
49+
if: steps.version-check.outputs.skipped == 'false'
4950
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
50-
if: ${{ steps.version-check.outputs.skipped == 'false' }}
5151
with:
5252
name: ${{ steps.version-check.outputs.tag }}
5353
tag: ${{ steps.version-check.outputs.tag }}
5454
commit: ${{ github.ref_name }}
5555
token: ${{ secrets.GH_TOKEN }}
5656
skipIfReleaseExists: true
57+
58+
- name: Publish to npm
59+
if: steps.version-check.outputs.skipped == 'false'
60+
run: pnpm publish --no-git-checks
61+
env:
62+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/onRelease.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
name: tests
2+
23
on:
34
push:
45
branches-ignore: [main]
56
workflow_dispatch:
67

8+
env:
9+
COREPACK_ENABLE_STRICT: 0
10+
711
jobs:
8-
unit-tests:
12+
test:
913
strategy:
1014
matrix:
11-
os: ['ubuntu-latest', 'windows-latest']
12-
node_version: [lts/-1, lts/*, latest]
15+
os: [ubuntu-latest, windows-latest]
16+
node_version: [lts/*, latest]
1317
fail-fast: false
1418
runs-on: ${{ matrix.os }}
1519
steps:
1620
- uses: actions/checkout@v4
21+
- uses: pnpm/action-setup@v6
22+
with:
23+
version: latest
1724
- uses: actions/setup-node@v4
1825
with:
1926
node-version: ${{ matrix.node_version }}
2027
cache: pnpm
21-
- run: pnpm install
28+
- run: pnpm install --ignore-scripts
2229
- run: pnpm run build
30+
- run: pnpm run test

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ oclif.manifest.json
1111

1212
yarn.lock
1313
package-lock.json
14-
15-
14+
.env

.mocharc.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-build-scripts=false

.prettierrc.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)