You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.
There are several ways to do this, but if we're going to support publishing to both npm and GPM (sorry) automatically we'll need to do one of the following:
Add instructions for publishing to GPM. Luckily, our entrypoint started as a copy of the one from actions/npm, so we already support custom values for NPM_REGISTRY_URL. In other words, all you should have to do is add this to your workflow:
Update this action to publish to GPM. We would need to add a level of abstraction around publishing to multiple registries, each with their own auth token. For instance: we might only publish to npm if NPM_AUTH_TOKEN is set, and/or to GPM if GPM_AUTH_TOKEN is set.
Write a new CLI that runs both of them, then call that from the action. In other words, every instance of npm publish becomes gpm publish here. I haven't looked yet, but this may already exist.
The text was updated successfully, but these errors were encountered:
@erictuvesson Yes! @emplums started working on this over in primer/react#450, but with Actions v2 (and GPR going into public beta) we'll need to revisit that change and test it again.
There are several ways to do this, but if we're going to support publishing to both npm and GPM (sorry) automatically we'll need to do one of the following:
Add instructions for publishing to GPM. Luckily, our entrypoint started as a copy of the one from actions/npm, so we already support custom values for
NPM_REGISTRY_URL
. In other words, all you should have to do is add this to your workflow:Update this action to publish to GPM. We would need to add a level of abstraction around publishing to multiple registries, each with their own auth token. For instance: we might only publish to npm if
NPM_AUTH_TOKEN
is set, and/or to GPM ifGPM_AUTH_TOKEN
is set.Write a new CLI that runs both of them, then call that from the action. In other words, every instance of
npm publish
becomesgpm publish
here. I haven't looked yet, but this may already exist.The text was updated successfully, but these errors were encountered: