single-file-cli 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -108,12 +108,13 @@ jobs:
108
108
  TAG_NAME: ${{ github.event.release.tag_name }}
109
109
  run: |
110
110
  version="${TAG_NAME#v}"
111
+ echo "RELEASE_VERSION=$version" >> "$GITHUB_ENV"
111
112
  for attempt in $(seq 1 40); do
112
- available=$(npm view single-file-cli version 2>/dev/null || true)
113
+ available=$(npm view "single-file-cli@$version" version 2>/dev/null || true)
113
114
  if [ "$available" = "$version" ]; then
114
115
  exit 0
115
116
  fi
116
- echo "npm serves ${available:-nothing}, waiting for $version"
117
+ echo "npm does not serve $version yet"
117
118
  sleep 30
118
119
  done
119
120
  echo "::error::timed out waiting for npm to serve $version"
@@ -135,6 +136,8 @@ jobs:
135
136
  uses: docker/build-push-action@v6
136
137
  with:
137
138
  push: true
139
+ build-args: |
140
+ VERSION=${{ env.RELEASE_VERSION }}
138
141
  tags: |
139
142
  ${{ secrets.DOCKER_USERNAME }}/singlefile:latest
140
143
  ${{ secrets.DOCKER_USERNAME }}/singlefile:${{ github.event.release.tag_name }}
package/Dockerfile CHANGED
@@ -1,12 +1,14 @@
1
1
  FROM node:24-alpine
2
2
 
3
+ ARG VERSION=latest
4
+
3
5
  RUN apk add --no-cache chromium ttf-freefont font-noto-emoji
4
6
 
5
7
  USER node
6
8
 
7
9
  WORKDIR /usr/src/app
8
10
 
9
- RUN npm install --omit=dev single-file-cli
11
+ RUN npm install --omit=dev single-file-cli@${VERSION}
10
12
 
11
13
  ENTRYPOINT [ \
12
14
  "npx", \
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@single-file/single-file-cli",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "SingleFile CLI",
5
5
  "exports": {
6
6
  ".": "./single-file-cli-api.js"
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "2.2.1";
1
+ export const version = "2.2.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-cli",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "SingleFile CLI",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",