Skip to content

Commit 65363dc

Browse files
committed
fix ci
1 parent c805e46 commit 65363dc

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v3
1616

17-
- uses: actions/setup-node@v3
17+
- uses: actions/setup-node@v4
1818
with:
1919
node-version-file: ".node-version"
20+
cache: "npm"
2021

2122
- name: Set up dependencies
2223
run: sudo ./scripts/setup.sh

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ WORKDIR /usr/src/app
55

66
COPY package*.json ./
77
COPY tsconfig.json ./
8+
COPY script/setup.sh ./script/
9+
10+
RUN chmod +x ./script/setup.sh
11+
RUN ./script/setup.sh
812

913
RUN npm ci
1014

scripts/setup.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ if [ -f /etc/os-release ]; then
77

88
apt update
99
apt install -y python3 pkg-config build-essential libcairo2-dev libpango1.0-dev
10-
npm ci
1110

1211
echo "Script execution completed successfully."
1312
else

0 commit comments

Comments
 (0)