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

Add support for building typings, using a different package manager, and specifying a custom build script #6

Merged
merged 6 commits into from
May 12, 2021

Conversation

davwheat
Copy link
Member

@davwheat davwheat commented May 12, 2021

This is a breaking change.

...but I have added a backcompat layer, even though I really shouldn't have to.


I have shifted syntax to use with instead of env, as this is designed for parameters.

See README for new syntax. Core has been updated accordingly.

We really (like REALLY) should be using tags for our actions... this will break every repo this action is on.

Prerequisite of flarum/framework#2856.

@davwheat davwheat self-assigned this May 12, 2021

### Assumptions

Your Javascript must be in a `js` folder, similar to how Flarum core and Flarum's first-party extensions are laid out.
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Should this also be a variable?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably :P

Copy link
Sponsor Member

@askvortsov1 askvortsov1 left a comment

Choose a reason for hiding this comment

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

Haven't tested (is it even possible to test this?) but LGTM

@davwheat
Copy link
Member Author

Yes! You can use act for Linux (3rd party tool) to run actions locally.

act -j build -s GITHUB_TOKEN=xxxxx # Replace with a PAT

I turn off WiFi when it hits the Webpack build just to make sure it doesn't commit and push anywhere 🤪

@askvortsov1
Copy link
Sponsor Member

Yes! You can use act for Linux (3rd party tool) to run actions locally.

act -j build -s GITHUB_TOKEN=xxxxx # Replace with a PAT

I turn off WiFi when it hits the Webpack build just to make sure it doesn't commit and push anywhere

If you've tested this, I'm happy with it. If it turns out not to work (it should work looking at the code), we can deal with it then.

@askvortsov1 askvortsov1 merged commit ce3c170 into master May 12, 2021
@davwheat davwheat deleted the dw/typings branch May 12, 2021 22:27
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.

2 participants