wispjs 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +72 -0
- package/LICENSE +674 -0
- package/README.md +241 -0
- package/package.json +30 -0
- package/tsconfig.json +19 -0
- package/wisp.ts +43 -0
- package/wisp_api/apis/allocations.ts +71 -0
- package/wisp_api/apis/audit_log.ts +81 -0
- package/wisp_api/apis/backups.ts +168 -0
- package/wisp_api/apis/databases.ts +80 -0
- package/wisp_api/apis/fastdl.ts +22 -0
- package/wisp_api/apis/filesystem.ts +291 -0
- package/wisp_api/apis/index.ts +135 -0
- package/wisp_api/apis/mods.ts +53 -0
- package/wisp_api/apis/schedules.ts +270 -0
- package/wisp_api/apis/servers.ts +155 -0
- package/wisp_api/apis/startup.ts +65 -0
- package/wisp_api/apis/subusers.ts +159 -0
- package/wisp_api/index.ts +57 -0
- package/wisp_socket/index.ts +480 -0
- package/wisp_socket/pool.ts +387 -0
- package/wrangler.toml +1 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
name: Deploy
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version_tag:
|
|
7
|
+
description: "Version tag for the package"
|
|
8
|
+
required: true
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- uses: actions/setup-node@v4
|
|
17
|
+
with:
|
|
18
|
+
node-version: 18
|
|
19
|
+
|
|
20
|
+
- name: Update package version
|
|
21
|
+
run: |
|
|
22
|
+
version=${{ inputs.version_tag }}
|
|
23
|
+
sed -i "s/\"version\": \".*\"/\"version\": \"$version\"/" package.json
|
|
24
|
+
|
|
25
|
+
- name: Install packages
|
|
26
|
+
run: |
|
|
27
|
+
npm ci
|
|
28
|
+
|
|
29
|
+
- name: Build
|
|
30
|
+
run: |
|
|
31
|
+
npm run build
|
|
32
|
+
|
|
33
|
+
- name: Generate Docs
|
|
34
|
+
run: |
|
|
35
|
+
npm run build-docs
|
|
36
|
+
mv docs ../docs_wip
|
|
37
|
+
|
|
38
|
+
- name: Remove Non-distributables
|
|
39
|
+
run: |
|
|
40
|
+
rm .gitignore
|
|
41
|
+
rm tsconfig.json
|
|
42
|
+
rm wisp.ts
|
|
43
|
+
rm -rf wisp_api wisp_socket .github
|
|
44
|
+
|
|
45
|
+
- name: Publish
|
|
46
|
+
uses: JS-DevTools/npm-publish@v3
|
|
47
|
+
with:
|
|
48
|
+
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
|
49
|
+
|
|
50
|
+
- name: Configure Git User
|
|
51
|
+
run: |
|
|
52
|
+
git config user.name github-actions
|
|
53
|
+
git config user.email github-actions@github.com
|
|
54
|
+
|
|
55
|
+
- name: Push package version change
|
|
56
|
+
run: |
|
|
57
|
+
git add package.json
|
|
58
|
+
git commit -m "Update package.json version to: ${{ inputs.version_tag }}" && \
|
|
59
|
+
git push --force-with-lease origin main || \
|
|
60
|
+
echo "Version tag unchanaged"
|
|
61
|
+
|
|
62
|
+
git tag "${{ inputs.version_tag }}"
|
|
63
|
+
git push --tags
|
|
64
|
+
|
|
65
|
+
- name: Publish Docs
|
|
66
|
+
run: |
|
|
67
|
+
rm -rf ./* ,/.*
|
|
68
|
+
|
|
69
|
+
mv ../docs_wip docs
|
|
70
|
+
git add .
|
|
71
|
+
git commit -m "Update Docs for version: ${{ inputs.version_tag }}"
|
|
72
|
+
git push --force origin HEAD:docs
|