Comments (6)
@rethab Agree with that. Would also need to indicate es2015
support:
{
"compilerOptions": {
"target": "es2015",
"moduleResolution": "node"
}
}
from typescript-action.
Just got confused by the lib/dist thing so +1 for simplifying.
Would be even better if you could build/package on the fly so you didn't have to checkin the dist
folder (which I've forgotten to do and spent hours trying to figure out what went wrong 🤦♂️ )
from typescript-action.
Would be even better if you could build/package on the fly so you didn't have to checkin the
dist
folder (which I've forgotten to do and spent hours trying to figure out what went wrong 🤦♂️ )
How would you do that?
Note that forgetting to update the dist
folder is a common problem. What you would typically do to mitigate this is to add a step to the workflow of your action that makes sure you didn't forget to update the dist
folder. You can do this by running generating the dist
folder as part of the workflow and then check whether anything changed. If something changed, you forgot to update the folder. Here's an example of how this could work in practice: https://github.com/actions/checkout/blob/main/.github/workflows/check-dist.yml
from typescript-action.
How would you do that?
I don't know and when I looked into it yesterday couldn't figure it out. I assume this is something GitHub would have to implement?
Thanks for the link to check-dist. I'll add that 👍
from typescript-action.
I don't know and when I looked into it yesterday couldn't figure it out. I assume this is something GitHub would have to implement?
I think you want to have it packaged by the action author, because otherwise the action might behave differently based on what versions of tools are used when packaging it on the fly.
What they could do instead would be to allow publishing actions to a registry (like npmjs.org) and then make them usable in a workflow like so:
uses: npmjs://@actions/checkout
But this is kinda ugly and they started with the dist
approach. Changing it now might lead to friction. Also, while having the packaged action in the dist
folder is not very nice from an engineering perspective, it is very straightforward as less tools are involved.
from typescript-action.
👋🏻 Hello! Apologies for the delay on this issue. I am going through this repository and making some large updates. This will be resolved by #732
from typescript-action.
Related Issues (20)
- Detected uncommitted changes after build. HOT 3
- Warning: `pre` execution is not supported for local action from './' HOT 8
- npm install is failing due to eslint HOT 1
- Add typing + validation workflow HOT 2
- bootgrubgrub.cfg HOT 1
- draft-ietf-httpbis-p3-payload-14 HOT 1
- .eslintrc.json is badly formatted HOT 1
- Keep dependencies up to date HOT 1
- ESLint config should extend from recommended configurations HOT 1
- Template not compatible with latest Node.js LTS version (18.14.2) HOT 1
- This Template seems to be code rotting 😢 HOT 2
- - name: Glo Add Label To Cards HOT 1
- Cannot remove "main" from package.json in favor of "exports" HOT 8
- [error] No files matching the pattern were found: "'**/*.ts'"
- tsconfig module value triggers validation
- This sample should be targeting node20
- Run is called before first test HOT 1
- "npm test" script eats failure-status (because "|| make-coverage-badge") HOT 2
- Pre & Post action config recommendation? HOT 2
- README should tell you to remove CODEOWNERS HOT 1
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 typescript-action.