File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 27
27
28
28
with :
29
29
fetch-depth : 0
30
+ - name : Get published version
31
+ id : get_version
32
+ run : |
33
+ ARGOPM_VERSION=$(npm show . version)
34
+ echo "The published version is: $ARGOPM_VERSION"
35
+ echo "::set-output name=argopm_version::$ARGOPM_VERSION"
36
+ # sleep 5 sec to make sure we can install the latest published version from npm in Dockerfile
37
+ sleep 5
30
38
- name : ' Get Previous tag'
31
39
id : previoustag
32
40
uses : " WyriHaximus/github-action-get-previous-tag@master"
56
64
build-args : |
57
65
ACCESS_TOKEN_USR=$GITHUB_ACTOR
58
66
ACCESS_TOKEN_PWD=${{ secrets.ORG_PAT_GITHUB }}
67
+ ARGOPM_VERSION=${{ steps.get_version.outputs.published_version }}
Original file line number Diff line number Diff line change 1
1
FROM node:20-alpine
2
2
3
+ ARG ARGOPM_VERSION
4
+
3
5
RUN mkdir /app
4
6
5
7
WORKDIR /app
6
8
7
9
COPY . /app
8
10
9
- RUN npm install argopm -g
11
+ RUN npm install argopm@${ARGOPM_VERSION} -g
10
12
11
13
RUN npm install
12
14
You can’t perform that action at this time.
0 commit comments