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

update build script to include ncc install #99

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Conversation

davidgamero
Copy link
Collaborator

gh actions won't respect npx installed devdeps, so i added the install to the build script and called through npx

gh actions won't respect npx installed devdeps
@davidgamero davidgamero requested a review from a team as a code owner February 7, 2024 17:43
@davidgamero davidgamero merged commit 688936d into main Feb 7, 2024
4 checks passed
@davidgamero davidgamero deleted the davidgamero-patch-2 branch February 7, 2024 18:12
@@ -4,7 +4,7 @@
"private": true,
"main": "lib/index.js",
"scripts": {
"build": "ncc build src/run.ts -o lib",
"build": "npm i ncc && npx ncc build src/run.ts -o lib",
Copy link
Collaborator

Choose a reason for hiding this comment

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

should installing ncc be a prebuild using npm pre scripts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

that's a good point

ideally it would just get installed via dev dependencies and then we can invoke via npx but for some reason that fails on gh action runners

i can test a prebuild script on a fork to confirm

duje-begonja-rdx added a commit to RDXWorks-actions/setup-kubectl that referenced this pull request Apr 30, 2024
* Bump node to version 20 (Azure#90)

* Bump @babel/traverse from 7.18.6 to 7.23.9 (Azure#93)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.18.6 to 7.23.9.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.9/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* migrate to new azure release workflow (Azure#95)

* migrate to new azure release workflow

* format

* Bump word-wrap from 1.2.3 to 1.2.4 (Azure#83)

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump semver from 5.7.1 to 5.7.2 (Azure#82)

Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](npm/node-semver@v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tough-cookie from 4.0.0 to 4.1.3 (Azure#81)

Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.0.0 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases)
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md)
- [Commits](salesforce/tough-cookie@v4.0.0...v4.1.3)

---
updated-dependencies:
- dependency-name: tough-cookie
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* v4 release (Azure#96)

* Update release-pr.yml (Azure#98)

* update build script to include ncc install (Azure#99)

gh actions won't respect npx installed devdeps

* Update release-pr.yml (Azure#101)

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Per Karlsson <per.karlsson@me.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Gamero <david340804@gmail.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.

None yet

4 participants