@adminforth/markdown 1.2.4 → 1.2.6

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.
@@ -4,8 +4,10 @@ set -x
4
4
 
5
5
  COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | cut -c1-8)
6
6
 
7
+ STATUS=${1}
7
8
 
8
- if [ "$CI_PREV_PIPELINE_STATUS" = "success" ]; then
9
+
10
+ if [ "$STATUS" = "success" ]; then
9
11
  MESSAGE="Did a build without issues on \`$CI_REPO_NAME/$CI_COMMIT_BRANCH\`. Commit: _${CI_COMMIT_MESSAGE}_ (<$CI_COMMIT_URL|$COMMIT_SHORT_SHA>)"
10
12
 
11
13
  curl -s -X POST -H "Content-Type: application/json" -d '{
@@ -16,26 +16,42 @@ steps:
16
16
  commands:
17
17
  - infisical export --domain https://vault.devforth.io/api --format=dotenv-export --env="prod" > /woodpecker/deploy.vault.env
18
18
 
19
- release:
19
+ build:
20
20
  image: node:20
21
21
  when:
22
22
  - event: push
23
- volumes:
24
- - /var/run/docker.sock:/var/run/docker.sock
25
23
  commands:
26
24
  - apt update && apt install -y rsync
27
- - export $(cat /woodpecker/deploy.vault.env | xargs)
25
+ - . /woodpecker/deploy.vault.env
28
26
  - npm clean-install
29
27
  - /bin/bash ./.woodpecker/buildRelease.sh
30
28
  - npm audit signatures
29
+
30
+ release:
31
+ image: node:20
32
+ when:
33
+ - event:
34
+ - push
35
+ branch:
36
+ - main
37
+ commands:
38
+ - . /woodpecker/deploy.vault.env
31
39
  - npx semantic-release
32
40
 
33
41
  slack-on-failure:
42
+ image: curlimages/curl
34
43
  when:
35
44
  - event: push
36
- status: [failure, success]
45
+ status: [failure]
46
+ commands:
47
+ - . /woodpecker/deploy.vault.env
48
+ - /bin/sh ./.woodpecker/buildSlackNotify.sh failure
49
+
50
+ slack-on-success:
37
51
  image: curlimages/curl
52
+ when:
53
+ - event: push
54
+ status: [success]
38
55
  commands:
39
- - export $(cat /woodpecker/deploy.vault.env | xargs)
40
- - /bin/sh ./.woodpecker/buildSlackNotify.sh
41
-
56
+ - . /woodpecker/deploy.vault.env
57
+ - /bin/sh ./.woodpecker/buildSlackNotify.sh success
package/build.log CHANGED
@@ -10,5 +10,5 @@ custom/package-lock.json
10
10
  custom/package.json
11
11
  custom/tsconfig.json
12
12
 
13
- sent 169,272 bytes received 115 bytes 338,774.00 bytes/sec
13
+ sent 169,278 bytes received 115 bytes 338,786.00 bytes/sec
14
14
  total size is 168,818 speedup is 1.00
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/markdown",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "Markdown plugin for adminforth",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,7 +29,7 @@
29
29
  "url": "https://github.com/devforth/adminforth-markdown.git"
30
30
  },
31
31
  "peerDependencies": {
32
- "adminforth": "^2.13.0-next.51"
32
+ "adminforth": "next"
33
33
  },
34
34
  "release": {
35
35
  "plugins": [