@bestend/confluence-cli 1.15.1 → 1.15.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/ci.yml +8 -47
- package/.github/workflows/publish.yml +7 -1
- package/README.md +2 -2
- package/package.json +1 -1
package/.github/workflows/ci.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name: CI
|
|
1
|
+
name: CI
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
@@ -9,59 +9,20 @@ on:
|
|
|
9
9
|
jobs:
|
|
10
10
|
test:
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
strategy:
|
|
14
14
|
matrix:
|
|
15
|
-
node-version: [
|
|
16
|
-
|
|
15
|
+
node-version: [18.x, 20.x]
|
|
16
|
+
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
19
|
-
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
|
|
20
20
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
21
|
-
uses: actions/setup-node@
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
22
|
with:
|
|
23
23
|
node-version: ${{ matrix.node-version }}
|
|
24
24
|
cache: 'npm'
|
|
25
|
-
|
|
26
|
-
- run: npm ci
|
|
27
|
-
- run: npm run lint
|
|
28
|
-
- run: npm test
|
|
29
|
-
|
|
30
|
-
security:
|
|
31
|
-
runs-on: ubuntu-latest
|
|
32
|
-
steps:
|
|
33
|
-
- uses: actions/checkout@v3
|
|
34
|
-
- name: Run npm audit
|
|
35
|
-
run: npm audit --audit-level moderate
|
|
36
25
|
|
|
37
|
-
publish:
|
|
38
|
-
needs: [test, security]
|
|
39
|
-
runs-on: ubuntu-latest
|
|
40
|
-
if: github.ref == 'refs/heads/main'
|
|
41
|
-
permissions:
|
|
42
|
-
contents: write
|
|
43
|
-
issues: write
|
|
44
|
-
pull-requests: write
|
|
45
|
-
|
|
46
|
-
steps:
|
|
47
|
-
- uses: actions/checkout@v3
|
|
48
|
-
with:
|
|
49
|
-
fetch-depth: 0
|
|
50
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
51
|
-
|
|
52
|
-
- name: Setup Node.js
|
|
53
|
-
uses: actions/setup-node@v3
|
|
54
|
-
with:
|
|
55
|
-
node-version: '18'
|
|
56
|
-
registry-url: 'https://registry.npmjs.org'
|
|
57
|
-
env:
|
|
58
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
59
|
-
|
|
60
26
|
- run: npm ci
|
|
27
|
+
- run: npm run lint
|
|
61
28
|
- run: npm test
|
|
62
|
-
|
|
63
|
-
- name: Semantic Release
|
|
64
|
-
uses: cycjimmy/semantic-release-action@v3
|
|
65
|
-
env:
|
|
66
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
67
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -16,9 +16,15 @@ jobs:
|
|
|
16
16
|
|
|
17
17
|
- uses: actions/setup-node@v4
|
|
18
18
|
with:
|
|
19
|
-
node-version: '
|
|
19
|
+
node-version: '24.x'
|
|
20
20
|
registry-url: 'https://registry.npmjs.org'
|
|
21
21
|
|
|
22
|
+
- name: Set package version from tag
|
|
23
|
+
run: |
|
|
24
|
+
TAG="${GITHUB_REF_NAME#v}"
|
|
25
|
+
echo "Setting package version to ${TAG}"
|
|
26
|
+
npm version "$TAG" --no-git-tag-version
|
|
27
|
+
|
|
22
28
|
- name: Install dependencies
|
|
23
29
|
run: npm ci
|
|
24
30
|
|
package/README.md
CHANGED
|
@@ -20,12 +20,12 @@ A powerful command-line interface for Atlassian Confluence that allows you to re
|
|
|
20
20
|
## Installation
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
|
-
npm install -g @bestend/confluence-cli
|
|
23
|
+
npm install -g @bestend/confluence-cli@1.15.2
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
Or run directly with npx:
|
|
27
27
|
```bash
|
|
28
|
-
npx @bestend/confluence-cli
|
|
28
|
+
npx @bestend/confluence-cli@1.15.2
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
## Quick Start
|