-
Notifications
You must be signed in to change notification settings - Fork 15
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 CD for npm publish #44
Comments
One good approach I saw:
The downside via the manual release approach is that someone has to trigger it. So from my point of view I would prefer the approach you linked where we have an automated cicd pipeline. For code quality we can still force a 100% code coverage to be on the safer side ;) |
That approach seems good. Currently I deploy it manually but OWF provide us a npm token, so next time, let's use it to publish automatically I think triggering the release to the npm when we make a new release in github is better. :) |
Before choosing a way, I would look at the used framework that should be used to manage a monorepo when we want to split it up. E.g. Lerna has a lot of functions already for versioning and i would prefer to reuse these common approaches so we can focus to work on the lib and not the "managing stuff" around it. |
I'll make a PR for integration with Lerna. |
Based #68, now we can discuss the package names. I believe @openwalletfounction/* will be used since there is a token provided by OWF. I made name in this format: sd-jwt-{sub package name}. so e.g. sd-jwt-type, sd-jwt-core. |
the prefix with openwalletfoundation is fine for me, since owf is already taken. also the approach with the general prefix To make the versioning easier I would suggest to sync the version numbers over the packages. In this case when we release something, we have it like:
|
Version sync is great. If not, there will be a compatible issue between each versions |
I guess there is no package named @owf/*. |
The name owf is already taken as an organisation, at least I was not able to create it |
Any chances we can reuse the @sd-jwt that is used right now? Other typescript projects from the owf like credo also use their own prefix. |
we can use @sd-jwt, @berendsliedrecht has that org. |
We can use the |
I like @sdj-wt too. :) 0.2.1 is the latest version of @sd-jwt packages |
Do you think it makes sense to continue under the versioning we have at sd-jwt? I don't feel well saying we are at v2 or even v3 since the version before are not ready yet (and not active used). Suggestion:
@lukasjhan @berendsliedrecht how do you think about this? |
That sounds good to me. |
okay, I can look at the versioning stuff with lerna |
To publish to npm with a github action, does an npm token(or something like that) need to be stored in github secret? |
in case we want to publish to npmjs, yes, see https://docs.github.com/de/actions/publishing-packages/publishing-nodejs-packages |
@berendsliedrecht Can you prepare an npm token so I can deploy this repo to @sd-jwt please? |
Yes! Just trying to think now of the best way to set this. @ryjones any tips? Do I just need to supply you the token and can you add the secret? |
Someone with admin privileges of this repo has to set the the token created by you @berendsliedrecht and store it as a secret in this repo. We can configure that it can only be used when the cicd runs on a protected branch. |
please make owf an owner over on npm and I'll create and add the token. |
@berendsliedrecht Could you invite me too? :) |
I'll change the name in package.json today :) |
done in #77 |
should change to
|
@lukasjhan will you make a PR or should I? |
@lukasjhan @cre8 the secret is named |
@ryjones @lukasjhan we do not need to rename it, I know why the ci is falling. It's because of this: I fixed it on one of my branches, but didn't make a PR. So we do not need to update the secret name, but fix the workflow (I will do it tomorrow) |
Okay :) It was my misunderstanding |
Overview
OWF provide npm token for our repo. you can check it in discord channel.
We'll apply same way with https://github.com/openwallet-foundation/agent-framework-javascript/blob/main/.github/workflows/continuous-deployment.yml
But, I think it should be triggered by release
The text was updated successfully, but these errors were encountered: