@suffolklitlab/alkiln 5.16.0 → 5.16.1

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.
@@ -65,3 +65,4 @@ jobs:
65
65
  DOCASSEMBLE_DEVELOPER_API_KEY: "${{ steps.github_server.outputs.DOCASSEMBLE_DEVELOPER_API_KEY }}"
66
66
  INSTALL_METHOD: "server"
67
67
  ALKILN_TAG_EXPRESSION: "@e3" # One very simple test
68
+ # ALKILN_VERSION:
@@ -1,7 +1,6 @@
1
1
  name: Playground installation
2
2
 
3
3
  on:
4
- push:
5
4
  pull_request:
6
5
  workflow_dispatch:
7
6
  inputs:
@@ -9,6 +8,8 @@ on:
9
8
  required: False
10
9
  description: 'Optional. Use a "tag expression" specify which tagged tests to run (https://cucumber.io/docs/cucumber/api/#tag-expressions)'
11
10
  default: ''
11
+ schedule:
12
+ - cron: "0 1 * * SUN"
12
13
 
13
14
  jobs:
14
15
 
package/CHANGELOG.md CHANGED
@@ -43,6 +43,23 @@ Format:
43
43
  -
44
44
  -->
45
45
 
46
+ <!-- ## [Unreleased] -->
47
+
48
+ ## [5.16.1] - 2026-06-01
49
+
50
+ ### Fixed
51
+
52
+ - In action.yml, replaced `npm rebuild` with an explicit search for existing puppeteer chrome executables. There is no fallback if all of those are missing. Addresses [#1088](https://github.com/suffolkLITLab/aLKiln/issues/1088). We hope to address the core issue when we can.
53
+ - Restore custom artifacts path argument to allow environments like action.yml to make and reuse their own artifacts path value in environments where it's hard to pass around return values. Closes [#1055](https://github.com/suffolkLITLab/aLKiln/issues/1055).
54
+
55
+ ### Security
56
+
57
+ - Moved responsibility for security measures to ALKiln internal development by automating internal security measures with `.npmrc`. Closes [#1088](https://github.com/suffolkLITLab/aLKiln/issues/1088).
58
+
59
+ ### Internal
60
+
61
+ - Avoid testing on our dev server with every push, uses cron job instead.
62
+
46
63
  ## [5.16.0] - 2026-05-14
47
64
 
48
65
  ### Added
package/action.yml CHANGED
@@ -14,7 +14,7 @@ inputs:
14
14
  ALKILN_VERSION:
15
15
  description: 'Version of ALKiln to get from npm.'
16
16
  required: false
17
- default: '^5.0.0'
17
+ default: '5.15.4'
18
18
  MAX_SECONDS_FOR_SETUP:
19
19
  description: "Amount of time to give the Project to upload your package's GitHub code."
20
20
  required: false
@@ -115,14 +115,32 @@ runs:
115
115
  with:
116
116
  node-version: "24.x"
117
117
  package-manager-cache: false
118
+
118
119
  - name: "💡 ALK0026 INFO: Install ALKiln directly from npm"
119
120
  shell: bash
120
121
  run: |
121
122
  log="💡 ALK0026 INFO: Install ALKiln directly from npm"
122
123
  echo -e "\n$log" >> "${{ env.DEBUG_PATH }}"
123
- npm install --ignore-scripts --min-release-age=7 -g "@suffolklitlab/alkiln@$ALKILN_VERSION"
124
- npm rebuild -g puppeteer --update-binary
124
+ npm install -g --ignore-scripts "@suffolklitlab/alkiln@$ALKILN_VERSION"
125
125
 
126
+ BROWSER="$(
127
+ command -v google-chrome-stable ||
128
+ command -v google-chrome ||
129
+ command -v chrome ||
130
+ command -v chromium-browser ||
131
+ command -v chromium ||
132
+ true
133
+ )"
134
+ if [[ -n "$BROWSER" ]]; then
135
+ log_result="💡 ALK0279 INFO: Found puppeteer browser executable at '$BROWSER'"
136
+ echo -e "\n$log_result" >> "${{ env.DEBUG_PATH }}" && echo -e "$log_result"
137
+ echo "PUPPETEER_EXECUTABLE_PATH=$BROWSER" >> "$GITHUB_ENV"
138
+ else
139
+ log_result="🤕 ALK0280 INFO: Unable to find puppeteer browser executable"
140
+ echo -e "\n$log_result" >> "${{ env.DEBUG_PATH }}" && echo -e "$log_result"
141
+ # Our project uses bash error codes in the 50's. This may change.
142
+ exit 51
143
+ fi
126
144
 
127
145
  # Files prep
128
146
  - shell: bash
@@ -11,7 +11,12 @@ const Log = require(`../utils/Log.js`);
11
11
 
12
12
  session_vars.delete_artifacts_path_name();
13
13
 
14
- const artifacts_path = files.make_artifacts_folder();
14
+ // process.argv is a list of strings of commands and args.
15
+ // If using `npm run artifacts` (as opposed to the bin commands),
16
+ // use `--` before, for example, `--sources=./foo`
17
+ // Envs like action.yml reuse their own .path when return vals are hard to get
18
+ const forced_path = require(`minimist`)( process.argv.slice(2) )?.path;
19
+ const artifacts_path = files.make_artifacts_folder( forced_path );
15
20
  session_vars.save_artifacts_path_name( artifacts_path );
16
21
 
17
22
  const log = new Log({ path: artifacts_path, context: `artifacts` });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suffolklitlab/alkiln",
3
- "version": "5.16.0",
3
+ "version": "5.16.1",
4
4
  "description": "Integrated automated end-to-end testing with docassemble, puppeteer, and cucumber.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -288,4 +288,6 @@ ALK0273:1
288
288
  ALK0274:1
289
289
  ALK0275:1
290
290
  ALK0276:1
291
- ALK0277:1
291
+ ALK0277:1
292
+ ALK0278:1
293
+ ALK0279:1