@suffolklitlab/alkiln 4.0.0-pre-api.3 → 4.0.0-pre-api.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.
- package/action.yml +9 -8
- package/lib/utils/session_vars.js +1 -1
- package/package.json +1 -1
package/action.yml
CHANGED
|
@@ -32,14 +32,6 @@ inputs:
|
|
|
32
32
|
runs:
|
|
33
33
|
using: "composite"
|
|
34
34
|
steps:
|
|
35
|
-
# Install node
|
|
36
|
-
- name: "ALKiln: Install node packages"
|
|
37
|
-
uses: actions/setup-node@v1
|
|
38
|
-
with:
|
|
39
|
-
node-version: "17"
|
|
40
|
-
- run: npm install
|
|
41
|
-
shell: bash
|
|
42
|
-
|
|
43
35
|
# Set environment variables
|
|
44
36
|
- name: "ALKiln: Set environment variables"
|
|
45
37
|
# If extra languages were set manually, override the repository
|
|
@@ -60,6 +52,7 @@ runs:
|
|
|
60
52
|
echo "PLAYGROUND_PASSWORD=${{ inputs.PLAYGROUND_PASSWORD }}" >> $GITHUB_ENV
|
|
61
53
|
echo "PLAYGROUND_ID=${{ inputs.PLAYGROUND_ID }}" >> $GITHUB_ENV
|
|
62
54
|
echo "DOCASSEMBLE_DEVELOPER_API_KEY=${{ inputs.DOCASSEMBLE_DEVELOPER_API_KEY }}" >> $GITHUB_ENV
|
|
55
|
+
echo "ALKILN_VERSION=${{ inputs.ALKILN_VERSION }}" >> $GITHUB_ENV
|
|
63
56
|
shell: bash
|
|
64
57
|
# This doesn't use an already established package-lock.json and that
|
|
65
58
|
# comes with some types of test breaking risks. Same problem as before.
|
|
@@ -87,6 +80,14 @@ runs:
|
|
|
87
80
|
run: echo -e "\nRepo is $REPO_URL\nBranch ref is $BRANCH_PATH\nManually added languages are $EXTRA_LANGUAGES\nAll other data is secret\n"
|
|
88
81
|
shell: bash
|
|
89
82
|
|
|
83
|
+
# Install node after package.json is created
|
|
84
|
+
- name: "ALKiln: Install node packages"
|
|
85
|
+
uses: actions/setup-node@v1
|
|
86
|
+
with:
|
|
87
|
+
node-version: "17"
|
|
88
|
+
- run: npm install
|
|
89
|
+
shell: bash
|
|
90
|
+
|
|
90
91
|
# Run tests
|
|
91
92
|
- name: "ALKiln: Create a Project and pull the package from GitHub"
|
|
92
93
|
run: npm run setup
|
|
@@ -84,7 +84,7 @@ session_vars.get_branch_name = function () {
|
|
|
84
84
|
/* Get the name of the repository's branch that is being tested */
|
|
85
85
|
let branch_name = null;
|
|
86
86
|
if ( process.env.BRANCH_PATH ) {
|
|
87
|
-
branch_name = process.env.BRANCH_PATH.replace( `refs/
|
|
87
|
+
branch_name = process.env.BRANCH_PATH.replace( `refs/heads/`, '' );
|
|
88
88
|
} else if ( process.env.BRANCH_NAME ) {
|
|
89
89
|
branch_name = process.env.BRANCH_NAME;
|
|
90
90
|
}
|
package/package.json
CHANGED