Compare commits

..

2 Commits

Author SHA1 Message Date
dependabot[bot]
e926aef728 chore: bump docker/setup-qemu-action from 3.7.0 to 4.0.0
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 3.7.0 to 4.0.0.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](c7c5346462...ce360397dd)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-01 12:47:54 +00:00
Asher
b27ceeb106 Prune dev dependencies when building release 2026-03-31 09:07:39 -08:00
2 changed files with 10 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ jobs:
echo "VERSION=${TAG#v}" >> $GITHUB_ENV echo "VERSION=${TAG#v}" >> $GITHUB_ENV
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3 - uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 - uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3 - uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3

View File

@@ -85,11 +85,15 @@ EOF
) > "$RELEASE_PATH/package.json" ) > "$RELEASE_PATH/package.json"
mv npm-shrinkwrap.json "$RELEASE_PATH" mv npm-shrinkwrap.json "$RELEASE_PATH"
rsync ci/build/npm-postinstall.sh "$RELEASE_PATH/postinstall.sh"
if [ "$KEEP_MODULES" = 1 ]; then if [ "$KEEP_MODULES" = 1 ]; then
rsync node_modules/ "$RELEASE_PATH/node_modules" rsync node_modules/ "$RELEASE_PATH/node_modules"
# Remove dev dependencies.
pushd "$RELEASE_PATH"
npm prune --production
popd
fi fi
rsync ci/build/npm-postinstall.sh "$RELEASE_PATH/postinstall.sh"
} }
bundle_vscode() { bundle_vscode() {
@@ -108,7 +112,9 @@ bundle_vscode() {
# need it for the npm package. # need it for the npm package.
rsync_opts+=(--exclude /node) rsync_opts+=(--exclude /node)
# Exclude Node modules. # Exclude Node modules. Note that these will already only include production
# dependencies, so if we do keep them there is no need to do any
# post-processing to remove dev dependencies.
if [[ $KEEP_MODULES = 0 ]]; then if [[ $KEEP_MODULES = 0 ]]; then
rsync_opts+=(--exclude node_modules) rsync_opts+=(--exclude node_modules)
fi fi