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

auto-publish unstable packages to NPM #625

Merged
merged 1 commit into from
Apr 23, 2022
Merged

auto-publish unstable packages to NPM #625

merged 1 commit into from
Apr 23, 2022

Conversation

SergeAstapov
Copy link
Contributor

As there's no convenient way to point NPM directly at a monorepo, and even if you could the package does have a required build step.

The build step for v2 addons was a deliberate design choice, because in the normal case apps can have much faster builds if all their addons are already prebuilt before publishing. But it does make the case of using unreleased code more manual.

This PR adds workflow to automatically publish alpha releases to NPM for every commit to the master branch.

This is inspired by setup in https://github.com/ember-animation/ember-animated/blob/master/.github/workflows/publish-unstable.yml

@lukemelia would you be open doing this? If yes - could you please add npm token as NODE_AUTH_TOKEN secret to the repository config?

@lukemelia
Copy link
Collaborator

If yes - could you please add npm token as NODE_AUTH_TOKEN secret to the repository config?

Added 👍

@SergeAstapov SergeAstapov merged commit 5290a3b into master Apr 23, 2022
@SergeAstapov SergeAstapov deleted the auto-publish branch April 23, 2022 03:06
@SergeAstapov
Copy link
Contributor Author

8.1.1-unstable.5290a3b was successfully published!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants