psdev-task-manager 1.0.16 → 1.1.0
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.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: Update Sites After Release Main
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
contents: write
|
|
8
|
+
packages: write
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
update-sites:
|
|
12
|
+
uses: psdevteamenterprise/ci-workflows/.github/workflows/publish-and-notify.yml@main
|
|
13
|
+
|
|
14
|
+
secrets:
|
|
15
|
+
MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
|
|
16
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PUBLISH }}
|
|
17
|
+
GH_APP_ID: ${{ secrets.GH_APP_ID }}
|
|
18
|
+
GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
19
|
+
WIX_CLI_API_KEY: ${{ secrets.PS_WIX_ACCOUNT_TOKEN }}
|
package/backend/tasks/utils.js
CHANGED
|
@@ -82,9 +82,6 @@ const updateTask = async task => {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
const markTask = async ({ task, status, error, amountOfRetries }) => {
|
|
85
|
-
if (!task || typeof task !== 'object') {
|
|
86
|
-
throw new Error('[markTask] Invalid task object provided');
|
|
87
|
-
}
|
|
88
85
|
const toMarkTask = {
|
|
89
86
|
...task,
|
|
90
87
|
...(status && { status }),
|