Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(npm): Install error "Unsupported platform @esbuild/[email protected]" #31

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,21 @@ jobs:
run: npm ci
- name: Run build
run: npm run build
- name: Pruning devDependencies
run: npm prune --production
- name: Updating npm-shrinkwrap.json
run: npm shrinkwrap
- name: Remove devDependencies from package.json
run: |
mv package.json package.json.bak
node <<- EOM
const fs = require("fs");
const pkg = JSON.parse(fs.readFileSync("package.json.bak", {encoding: "utf8"}));
pkg.devDependencies = {};
fs.writeFileSync("package.json", JSON.stringify(pkg, null, "\t"), {encoding: "utf8"});
EOM
- name: Pruning extraneous packages (also updates shrinkwrap)
run: npm prune --omit=dev
- name: Restoring original package.json
run: |
rm package.json
mv package.json.bak package.json
- name: Publish to NPM
env:
NPM_TOKEN: ${{secrets.NPM_UI5BOT}}
Expand Down