Skip to content

Commit d00b430

Browse files
committed
chore(CRC-184): Bundle dependencies due to private package
1 parent 0775a2b commit d00b430

File tree

13 files changed

+228961
-16
lines changed

13 files changed

+228961
-16
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,32 @@ jobs:
4949
id: npm-test
5050
run: pnpm test:unit
5151

52+
# This will fail the workflow if the `dist/` directory is different than
53+
# expected.
54+
- name: Compare Directories
55+
id: diff
56+
run: |
57+
if [ ! -d dist/ ]; then
58+
echo "Expected dist/ directory does not exist. See status below:"
59+
ls -la ./
60+
exit 1
61+
fi
62+
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
63+
echo "Detected uncommitted changes after build. See status below:"
64+
git diff --ignore-space-at-eol --text dist/
65+
exit 1
66+
fi
67+
68+
# If `dist/` was different than expected, upload the expected version as a
69+
# workflow artifact.
70+
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
71+
name: Upload Artifact
72+
id: upload
73+
uses: actions/upload-artifact@v4
74+
with:
75+
name: dist
76+
path: dist/
77+
5278
- name: Upload coverage
5379
id: upload-coverage
5480
uses: actions/upload-artifact@v4

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ bower_components
4444

4545
# Compiled binary addons (https://nodejs.org/api/addons.html)
4646
build/Release
47-
dist
4847

4948
# Dependency directories
5049
jspm_packages/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:22-alpine AS installer
22
RUN corepack enable && corepack prepare [email protected] --activate
33
WORKDIR /usr/src/app
44
COPY package.json pnpm-lock.yaml ./
5-
RUN pnpm install --frozen-lockfile
5+
RUN pnpm install --frozen-lockfile -P
66
COPY . .
77

88
FROM installer AS builder

bin/markdown-confluence-sync-action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
// SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital
44
// SPDX-License-Identifier: Apache-2.0
55

6-
import { run } from "../dist/main.js";
6+
import { run } from "../dist/index.js";
77
run();

0 commit comments

Comments
 (0)