File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 4
4
schedule :
5
5
- cron : " 0 10 * * *" # everyday at 10am
6
6
workflow_dispatch :
7
- pull_request_target :
7
+ pull_request :
8
8
branches : ["latest"]
9
9
push :
10
10
branches : ["latest"]
20
20
steps :
21
21
- name : Check out the repo
22
22
uses : actions/checkout@v5
23
+ with :
24
+ ref : ${{ github.head_ref || github.ref }}
23
25
- name : Set imageName based on the repository name
24
26
id : step_one
25
27
run : |
46
48
with :
47
49
platforms : ${{ env.platforms }}
48
50
push : ${{ github.event_name != 'pull_request' }}
51
+ pull : true
49
52
tags : ${{ steps.docker_meta.outputs.tags }}
50
53
labels : ${{ steps.docker_meta.outputs.labels }}
Original file line number Diff line number Diff line change 18
18
org.opencontainers.image.documentation="https://github.com/beevelop/docker-android-nodejs/blob/latest/README.md" \
19
19
org.opencontainers.image.source="https://github.com/beevelop/docker-android-nodejs.git"
20
20
21
- # Install Node.js using NodeSource repository
22
- RUN apt-get update && apt-get install -y curl ca-certificates && \
23
- curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
24
- apt-get install -y nodejs && \
21
+ # Install Node.js 22 with compatible npm using official Node.js binaries
22
+ ENV NODE_VERSION=22.18.0
23
+ RUN apt-get update && apt-get install -y curl ca-certificates xz-utils && \
24
+ curl -fsSL https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz | tar -xJ -C /usr/local --strip-components=1 && \
25
+ npm install -g npm@latest && \
25
26
npm install -g yarn && \
26
27
apt-get clean && \
27
28
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
You can’t perform that action at this time.
0 commit comments