@agility/management-sdk 0.1.37 → 0.1.39
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/npm-publish.yml +61 -0
- package/README.md +396 -371
- package/dist/apiMethods/instanceMethods.d.ts +13 -0
- package/dist/apiMethods/instanceMethods.js +48 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/exception.d.ts +4 -0
- package/dist/models/exception.js +17 -1
- package/dist/models/fetchApiStatus.d.ts +38 -0
- package/dist/models/fetchApiStatus.js +2 -0
- package/docs/asset-methods.md +381 -381
- package/docs/auth-component.md +360 -360
- package/docs/auth.md +593 -593
- package/docs/batch-methods.md +243 -243
- package/docs/cicd.md +606 -606
- package/docs/container-methods.md +267 -267
- package/docs/content-methods.md +491 -491
- package/docs/instance-methods.md +185 -105
- package/docs/instance-user-methods.md +230 -230
- package/docs/model-methods.md +433 -433
- package/docs/multi-instance-operations.md +191 -191
- package/docs/page-methods.md +737 -737
- package/docs/server-user-methods.md +279 -279
- package/docs/webhook-methods.md +451 -451
- package/license.txt +20 -20
- package/package.json +42 -41
- package/tsconfig.json +14 -14
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
3
|
+
# Publishes @agility/management-sdk to npm when a version tag (vX.Y.Z) is pushed.
|
|
4
|
+
#
|
|
5
|
+
# Release flow:
|
|
6
|
+
# 1. Bump "version" in package.json and merge to main.
|
|
7
|
+
# 2. Tag the commit: `git tag v0.1.40 && git push origin v0.1.40`
|
|
8
|
+
# 3. This workflow verifies the tag matches package.json, builds, and publishes.
|
|
9
|
+
|
|
10
|
+
on:
|
|
11
|
+
push:
|
|
12
|
+
tags:
|
|
13
|
+
- "v*"
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
publish:
|
|
17
|
+
name: Build and publish to npm
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
permissions:
|
|
20
|
+
contents: read
|
|
21
|
+
id-token: write # required for npm Trusted Publisher (OIDC) provenance
|
|
22
|
+
|
|
23
|
+
steps:
|
|
24
|
+
- name: Checkout
|
|
25
|
+
uses: actions/checkout@v4
|
|
26
|
+
with:
|
|
27
|
+
fetch-depth: 0
|
|
28
|
+
|
|
29
|
+
- name: Verify tag matches package.json version
|
|
30
|
+
run: |
|
|
31
|
+
TAG_VERSION="${GITHUB_REF_NAME#v}"
|
|
32
|
+
PKG_VERSION=$(node -p "require('./package.json').version")
|
|
33
|
+
if [ "$TAG_VERSION" != "$PKG_VERSION" ]; then
|
|
34
|
+
echo "Tag ($TAG_VERSION) does not match package.json version ($PKG_VERSION)."
|
|
35
|
+
exit 1
|
|
36
|
+
fi
|
|
37
|
+
|
|
38
|
+
- name: Set up Node.js
|
|
39
|
+
uses: actions/setup-node@v4
|
|
40
|
+
with:
|
|
41
|
+
node-version: "24"
|
|
42
|
+
registry-url: "https://registry.npmjs.org"
|
|
43
|
+
|
|
44
|
+
- name: Upgrade npm for Trusted Publisher OIDC support
|
|
45
|
+
run: npm install -g npm@latest
|
|
46
|
+
|
|
47
|
+
- name: Install dependencies
|
|
48
|
+
run: npm ci
|
|
49
|
+
|
|
50
|
+
- name: Build
|
|
51
|
+
run: npm run build
|
|
52
|
+
|
|
53
|
+
- name: Publish
|
|
54
|
+
run: |
|
|
55
|
+
PKG_VERSION=$(node -p "require('./package.json').version")
|
|
56
|
+
PRERELEASE_TAG=$(echo "$PKG_VERSION" | grep -oP '(?<=-)\w+' | head -1 || true)
|
|
57
|
+
if [ -n "$PRERELEASE_TAG" ]; then
|
|
58
|
+
npm publish --access public --provenance --tag "$PRERELEASE_TAG"
|
|
59
|
+
else
|
|
60
|
+
npm publish --access public --provenance
|
|
61
|
+
fi
|