Skip to content

[feature] Add install script inputs#85

Merged
rschristian merged 3 commits into
preactjs:masterfrom
jeffreys-cat:master
Apr 22, 2024
Merged

[feature] Add install script inputs#85
rschristian merged 3 commits into
preactjs:masterfrom
jeffreys-cat:master

Conversation

@jeffreys-cat

Copy link
Copy Markdown
Contributor

We install dependencies with NPM install, Action's installScript npm ci needs a package-lock.json file, otherwise will throw an error. But in some cases, the library use optionalDependencies, package-lock.json is different on different platforms.

For example, vercel's turborepo,I run npm install on my MAC and create a package-lock.json, but only turbo-darwin-arm64 exist in package-lock.json, while pushed it to GitHub and run this Action, because turbo-linux-64 needs on Linux. Then I got an error. I need to use a custom install method npm install --no-package-lock to make it works.

I would like to add an installScript to support custom installation scripts like buildScript.

@nicklmart

nicklmart commented Aug 22, 2023

Copy link
Copy Markdown

also have a need for this, would like to run npm ci --ignore-scripts instead of npm ci

Is this a suitable solution @developit?

Co-authored-by: Alan Orozco <alanorozco@users.noreply.github.com>

@rschristian rschristian left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers, sorry for the long time without any eyes on this

Comment thread action.yml Outdated
@rschristian rschristian merged commit f135bd3 into preactjs:master Apr 22, 2024
renovate Bot referenced this pull request in UI5/webcomponents-react Apr 23, 2024
…5748)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[preactjs/compressed-size-action](https://togithub.com/preactjs/compressed-size-action)
| action | minor | `2.5.0` -> `2.6.0` |

---

### Release Notes

<details>
<summary>preactjs/compressed-size-action
(preactjs/compressed-size-action)</summary>

###
[`v2.6.0`](https://togithub.com/preactjs/compressed-size-action/releases/tag/2.6.0)

[Compare
Source](https://togithub.com/preactjs/compressed-size-action/compare/2.5.0...2.6.0)

#### New Features / Improvements

- \[feature] Add install script inputs by
[@&#8203;jeffreys-cat](https://togithub.com/jeffreys-cat) in
[https://github.com/preactjs/compressed-size-action/pull/85](https://togithub.com/preactjs/compressed-size-action/pull/85)
- feat: Add support for more precise percentage changes by
[@&#8203;mister-ben](https://togithub.com/mister-ben) in
[https://github.com/preactjs/compressed-size-action/pull/97](https://togithub.com/preactjs/compressed-size-action/pull/97)
- Add support for Bun by
[@&#8203;jack-weilage](https://togithub.com/jack-weilage) in
[https://github.com/preactjs/compressed-size-action/pull/104](https://togithub.com/preactjs/compressed-size-action/pull/104)

#### Action Maintenance

- Update action.yml to use node16 by
[@&#8203;estherkim](https://togithub.com/estherkim) in
[https://github.com/preactjs/compressed-size-action/pull/87](https://togithub.com/preactjs/compressed-size-action/pull/87)
- Move to node20, release v3 by
[@&#8203;jonny-puma](https://togithub.com/jonny-puma) in
[https://github.com/preactjs/compressed-size-action/pull/103](https://togithub.com/preactjs/compressed-size-action/pull/103)

#### Repo Maintenance

- Fix typo by [@&#8203;denniskigen](https://togithub.com/denniskigen) in
[https://github.com/preactjs/compressed-size-action/pull/86](https://togithub.com/preactjs/compressed-size-action/pull/86)
- chore: Update Github actions to latest versions by
[@&#8203;mmckenziedev](https://togithub.com/mmckenziedev) in
[https://github.com/preactjs/compressed-size-action/pull/90](https://togithub.com/preactjs/compressed-size-action/pull/90)
- chore: Bump package-lock.json by
[@&#8203;rschristian](https://togithub.com/rschristian) in
[https://github.com/preactjs/compressed-size-action/pull/105](https://togithub.com/preactjs/compressed-size-action/pull/105)

#### New Contributors

- [@&#8203;denniskigen](https://togithub.com/denniskigen) made their
first contribution in
[https://github.com/preactjs/compressed-size-action/pull/86](https://togithub.com/preactjs/compressed-size-action/pull/86)
- [@&#8203;estherkim](https://togithub.com/estherkim) made their first
contribution in
[https://github.com/preactjs/compressed-size-action/pull/87](https://togithub.com/preactjs/compressed-size-action/pull/87)
- [@&#8203;mmckenziedev](https://togithub.com/mmckenziedev) made their
first contribution in
[https://github.com/preactjs/compressed-size-action/pull/90](https://togithub.com/preactjs/compressed-size-action/pull/90)
- [@&#8203;jack-weilage](https://togithub.com/jack-weilage) made their
first contribution in
[https://github.com/preactjs/compressed-size-action/pull/104](https://togithub.com/preactjs/compressed-size-action/pull/104)
- [@&#8203;jonny-puma](https://togithub.com/jonny-puma) made their first
contribution in
[https://github.com/preactjs/compressed-size-action/pull/103](https://togithub.com/preactjs/compressed-size-action/pull/103)
- [@&#8203;mister-ben](https://togithub.com/mister-ben) made their first
contribution in
[https://github.com/preactjs/compressed-size-action/pull/97](https://togithub.com/preactjs/compressed-size-action/pull/97)
- [@&#8203;jeffreys-cat](https://togithub.com/jeffreys-cat) made their
first contribution in
[https://github.com/preactjs/compressed-size-action/pull/85](https://togithub.com/preactjs/compressed-size-action/pull/85)
- [@&#8203;rschristian](https://togithub.com/rschristian) made their
first contribution in
[https://github.com/preactjs/compressed-size-action/pull/105](https://togithub.com/preactjs/compressed-size-action/pull/105)

**Full Changelog**:
preactjs/compressed-size-action@2.5.0...2.6.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/SAP/ui5-webcomponents-react).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
sarayourfriend pushed a commit to sarayourfriend/compressed-size-action that referenced this pull request Sep 27, 2024
* [feature] Add install script inputs

* docs: Add docs for new `install-script` option

Co-authored-by: Alan Orozco <alanorozco@users.noreply.github.com>

* Update action.yml

---------

Co-authored-by: Ryan Christian <rchristian@ryanchristian.dev>
Co-authored-by: Alan Orozco <alanorozco@users.noreply.github.com>
Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants