Comments (9)
This issue is stale because it has been open 60 days with no activity.
from docs.
For the short term, we've also clarified this in the contributing/development documentation: 054f9ab
from docs.
@zeke Why not use the postinstall
script in the package.json
to run the build script. It only runs once after npm install
.
cc: @JamesMGreene @janiceilene
from docs.
Good idea @FarazzShaikh! That might work. Would you care to give it a try and open a PR if it does?
from docs.
Will do later today! Could you assign this issue to me so it doesn’t slip my mind? Thank you!
from docs.
This does indeed work. Adding the script "postinstall": "npm run build"
to package.json
does build once after installations. However, one test (tests/routing/developer-site-redirects.js
) fails when running npm run test
but i don't think it's related to this.
Also, you might have to change your Actions workflows as npm ci
also calls postinstall
thus making the npm run build
commands redundant.
@zeke if you're fine with this, I can make the changes to the workflows and the package.json
then PR it in.
from docs.
@FarazzShaikh We're definitely open to that! FWIW, your PR will receive a message saying we don't accept contributions to workflow files but we're willing to make exceptions for small change sets like what you mentoned. 👍🏻
One suggestion, though, would be to use the prepare
script instead of postinstall
as that more closely aligns with our needs (building/transpiling code) semantically.
from docs.
Sounds good, I’ll make the required changes with prepare
And PR it in
from docs.
We've decided not to implement this behavior for the time being.
More details: #7713 (comment)
from docs.
Related Issues (20)
- Partner Owner HOT 3
- document composite action `steps[*].continue-on-error` HOT 2
- Info on caching in .NET is outdated HOT 2
- Search HOT 2
- Replace `the API will return an error message that states the scopes or permissions your token needs` HOT 2
- [maintainer edit for spammy content] HOT 3
- Deleting an environment vs. relation to actual pages (un)published? HOT 2
- A wrong newline in Chinese version of Moving a file to a new location HOT 2
- Add link to OIDC claim debugger HOT 5
- Would it be possible to have an RSS feed of the newly added partners for secrets scanning? HOT 2
- clarify that `github.env` is not related to `env` HOT 2
- An accidental milestone left unattended for over 2 years HOT 1
- Document the character limit of label names HOT 3
- CS Bantuan BRImo HOT 1
- Info about security-and-quality query suite missing HOT 5
- "Add labels to an issue" doc refers to `pull_requests:write` permission, but should be `pull-requests:write` HOT 3
- Documentation - searching for files HOT 3
- Can't bring back introductory banner once it's dismissed HOT 3
- Fix GitHub Copilot CLI Powershell Alias instructions HOT 5
- Fix PowerShell instructions for GitHub Copilot CLI HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.