spec-up-t 1.1.37 → 1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.39",
|
|
4
4
|
"description": "Technical specification drafting tool that generates rich specification documents from markdown. Forked from https://github.com/decentralized-identity/spec-up by Daniel Buchner (https://github.com/csuwildcat)",
|
|
5
5
|
"main": "./index",
|
|
6
6
|
"repository": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name: Menu
|
|
1
|
+
name: Run Menu
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
workflow_dispatch:
|
|
@@ -16,7 +16,7 @@ on:
|
|
|
16
16
|
- Collect external references (no cache)
|
|
17
17
|
- Convert to PDF
|
|
18
18
|
- Freeze specification
|
|
19
|
-
- List references
|
|
19
|
+
# - List references
|
|
20
20
|
# - Show help
|
|
21
21
|
# - Add/remove xref source
|
|
22
22
|
# - Configure specification
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
31
31
|
- name: Checkout 🛎️
|
|
32
32
|
uses: actions/checkout@v4
|
|
33
33
|
with:
|
|
34
|
-
persist-credentials:
|
|
34
|
+
persist-credentials: true # We’ll use MY_PAT for push
|
|
35
35
|
|
|
36
36
|
- name: Set up Node.js
|
|
37
37
|
uses: actions/setup-node@v4
|
|
@@ -60,46 +60,71 @@ jobs:
|
|
|
60
60
|
MY_PAT: ${{ secrets.MY_PAT }} # Make the secret available as an env var
|
|
61
61
|
run: |
|
|
62
62
|
case "${{ github.event.inputs.script }}" in
|
|
63
|
-
"Edit specification")
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
# "Edit specification")
|
|
64
|
+
# node -e "require('spec-up-t')()"
|
|
65
|
+
# ;;
|
|
66
66
|
"Render specification")
|
|
67
67
|
node --no-warnings -e "require('spec-up-t/index.js')({ nowatch: true })"
|
|
68
|
+
git config --global user.email "actions@github.com"
|
|
69
|
+
git config --global user.name "GitHub Actions"
|
|
70
|
+
git add .
|
|
71
|
+
git commit -m "Render specification: Update files" || echo "No changes to commit"
|
|
72
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
68
73
|
;;
|
|
69
|
-
"Develop specification")
|
|
70
|
-
|
|
71
|
-
|
|
74
|
+
# "Develop specification")
|
|
75
|
+
# node -e "require('spec-up-t')({ dev: true })"
|
|
76
|
+
# ;;
|
|
72
77
|
"Collect external references (cached)")
|
|
73
78
|
node --no-warnings -e "require('spec-up-t/src/collect-external-references.js').collectExternalReferences({cache: true})"
|
|
79
|
+
git config --global user.email "actions@github.com"
|
|
80
|
+
git config --global user.name "GitHub Actions"
|
|
81
|
+
git add .
|
|
82
|
+
git commit -m "Collect external references (cached)" || echo "No changes to commit"
|
|
83
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
74
84
|
;;
|
|
75
85
|
"Collect external references (no cache)")
|
|
76
|
-
node --no-warnings -e "require('spec-up-t/src/collect-external-references.js').collectExternalReferences({cache: false, pat:
|
|
86
|
+
node --no-warnings -e "require('spec-up-t/src/collect-external-references.js').collectExternalReferences({cache: false, pat: ${{ secrets.MY_PAT }}})"
|
|
87
|
+
git config --global user.email "actions@github.com"
|
|
88
|
+
git config --global user.name "GitHub Actions"
|
|
89
|
+
git add .
|
|
90
|
+
git commit -m "Collect external references (no cache)" || echo "No changes to commit"
|
|
91
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
77
92
|
;;
|
|
78
93
|
"Convert to PDF")
|
|
79
94
|
node -e "require('spec-up-t/src/create-pdf.js')"
|
|
95
|
+
git config --global user.email "actions@github.com"
|
|
96
|
+
git config --global user.name "GitHub Actions"
|
|
97
|
+
git add .
|
|
98
|
+
git commit -m "Convert to PDF" || echo "No changes to commit"
|
|
99
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
80
100
|
;;
|
|
81
101
|
"Freeze specification")
|
|
82
102
|
node -e "require('spec-up-t/src/freeze.js')"
|
|
103
|
+
git config --global user.email "actions@github.com"
|
|
104
|
+
git config --global user.name "GitHub Actions"
|
|
105
|
+
git add .
|
|
106
|
+
git commit -m "Freeze specification" || echo "No changes to commit"
|
|
107
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
83
108
|
;;
|
|
84
|
-
"List references")
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"Show help")
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"Add/remove xref source")
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"Configure specification")
|
|
94
|
-
|
|
95
|
-
|
|
109
|
+
# "List references")
|
|
110
|
+
# node -e "require('spec-up-t/src/references.js')"
|
|
111
|
+
# ;;
|
|
112
|
+
# "Show help")
|
|
113
|
+
# cat ./node_modules/spec-up-t/src/install-from-boilerplate/help.txt || echo "Help file not found"
|
|
114
|
+
# ;;
|
|
115
|
+
# "Add/remove xref source")
|
|
116
|
+
# node --no-warnings -e "require('spec-up-t/src/add-remove-xref-source.js')"
|
|
117
|
+
# ;;
|
|
118
|
+
# "Configure specification")
|
|
119
|
+
# node --no-warnings -e "require('spec-up-t/src/configure.js')"
|
|
120
|
+
# ;;
|
|
96
121
|
"Custom update")
|
|
97
122
|
npm update && node -e "require('spec-up-t/src/install-from-boilerplate/custom-update.js')"
|
|
98
123
|
git config --global user.email "actions@github.com"
|
|
99
124
|
git config --global user.name "GitHub Actions"
|
|
100
125
|
git add .
|
|
101
126
|
git commit -m "Custom update: Copy files from spec-up-t" || echo "No changes to commit"
|
|
102
|
-
git push https://x-access-token:${{ secrets.
|
|
127
|
+
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
|
|
103
128
|
;;
|
|
104
129
|
*)
|
|
105
130
|
echo "Unknown script: ${{ github.event.inputs.script }}"
|