-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
ci: auto npm publish script #757
Conversation
Codecov Report
@@ Coverage Diff @@
## main #757 +/- ##
=======================================
Coverage 99.62% 99.62%
=======================================
Files 2156 2156
Lines 237025 237025
Branches 1006 1008 +2
=======================================
+ Hits 236126 236136 +10
+ Misses 878 868 -10
Partials 21 21
|
This looks ridiculously easy 🤔 sus? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot test this, but I think it looks good.
We can merge and check it Monday with our v6.1.2 release.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But we need @prisis or @damienwebdev to add the token
May or may not have been copy-pasted from GitHub documentation😂 |
Isn't the point of this pipeline to ensure that things like v6.1.0 don't happen again? Well, the pipeline doesn't build the newest state of the library. In fact, it doesn't build the project at all. Or did I miss something? Does the |
Yes it does, since 6.1.1 62dcfc9#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R76 But this PR would not change something for that, cause it now would do it for manually publishes too |
Ok, I didn't notice that. But tbh I'm not a fan of relying on pre/post scripts for pipelines since:
Just some points you might want to consider. |
@xDivisionByZerox So you would like us to explicitly call |
I would do so for my pipelines, yes. But I don't think I'm in the position to demand anything. I guess it would be helpful enough, for anyone that might have a look at the config in the future, to add a comment over the |
I am with @xDivisionByZerox on this... |
Would something like this suffice for you? # Relies on the prepublishOnly hook to build the project
- run: npm publish Unfortunately it isn't possible to add comments to the package.json to add a hint there too. |
I mean if you state it that way, why not explicitly call the necessary build steps? Yes, it's a bit redundant and takes some more time to complete, on the other side this is run like once a week, so it shouldn't matter. |
I would go more in this direction https://www.npmjs.com/package/@changesets/cli, check https://github.com/Thinkmill/manypkg as example how it works, it creates a .changeset folder with all the changes than can be than released In the end we need to discuss how the workflow should be, and what we want :) |
Looks like we won't have a pipeline by Monday. |
Nope, sorry... , we can talk about it tomorrow in the call :) |
Co-authored-by: Shinigami <chrissi92@hotmail.de>
Co-authored-by: pkuczynski <piotr.kuczynski@gmail.com> Co-authored-by: Shinigami92 <chrissi92@hotmail.de>
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: pnpm ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this command exist only in ci? I cannot run it locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the native npm not pnpm command
The theoretically equivalent would be something like using --frozen-lockfile
But this might be auto-enables in env CI=true
https://pnpm.io/cli/install#--frozen-lockfile
Superseded by #1096 |
@import-brain Do you still need the branch? If not, please delete it. |
Done |
fixes #268