Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tombrunet committed Mar 16, 2022
1 parent e87ca41 commit e45608e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gitactions/publish/achecker-engine.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if [ -n "${GITHUB_REF:10}" ]; then
cd ./accessibility-checker-engine/dist;
cp ../rule-server/dist/static/archives.json
cd ./accessibility-checker-engine/dist
cp ../../rule-server/dist/static/archives.json ./
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >.npmrc;
NPM_VERSION="${GITHUB_REF:10}";
echo "Deploy accessibility-checker-engine version ${NPM_VERSION}...";
Expand Down
8 changes: 7 additions & 1 deletion rule-server/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,14 @@ export class Server {

const archives = require("./static/archives");
let latest = "2020FebDeploy";
let latestVersion;
for (const archive of archives) {
if (archive.latest) {
if (archive.id === "latest") {
latestVersion = archive.version;
}
}
for (const archive of archives) {
if (archive.version === latestVersion) {
latest = archive.path;
}
}
Expand Down

0 comments on commit e45608e

Please sign in to comment.