Skip to content

Publish preparations #941

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

Merged
merged 1 commit into from
Nov 8, 2019
Merged

Publish preparations #941

merged 1 commit into from
Nov 8, 2019

Conversation

dcodeIO
Copy link
Member

@dcodeIO dcodeIO commented Nov 7, 2019

This PR contains the initial preparation work to start publishing to npm. Idea is:

  • Create a release branch that is always up to date with the tip of our releases
  • Once a day
    • Merge master into release
    • Build and commit dist files
    • Obtain the current version from package.json
    • Check if the respective tag (with a prepended "v") does exist
      • If it exists, make a nightly of the form v$VERSION-nightly.YYYYMMDD
      • If it does not exist, make a release of the form v$VERSION
    • Push dist files back to release and create the tag
    • Publish to npm (not yet enabled)
    • Publish to GH package registry (not yet enabled)

This gives us:

  • To bump the version, all we have to do is edit package.json
  • If the dist files at the tip of our releases are the same as those we just built, the job fails (commit is empty) so we don't publish unnecessary duplicates.

With caveats being:

  • Publishing happens exactly once a day, so it might take a while till these end up on npm etc.
  • Installing AssemblyScript/assemblyscript via npm will no longer work once dist files are removed from master (currently still there)

@dcodeIO dcodeIO merged commit 6db9b1e into master Nov 8, 2019
@dcodeIO
Copy link
Member Author

dcodeIO commented Nov 8, 2019

Alright, let's see how this turns out. If it works as expected, there should be a v0.8.0 tag in about an hour.

@dcodeIO dcodeIO deleted the publish branch January 1, 2020 14:22
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.

1 participant