Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-35713

JDL - Script publish process

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Postponed
    • Icon: Minor Minor
    • blueocean-plugin
    • None

      • Set up an npm "pre-publish" hook that blocks invocation via "npm publish" - see PoC here: https://gist.github.com/sophistifunk/9ebefcc134f47e310adfd3d077fa8c00
      • Write a publish script in vanilla js (targeted at Node 5, probably) that does something along the lines of:
        1. Make sure on master, with nothing unstaged
        2. Grab latest published version from npm info, increment it and set local version if it's old or has a -foo suffix. (+commit master)
        3. Clean build
        4. Create some tag file in /dist documenting current version and commit hash
        5. Set the magic env var, npm publish
        6. Git tag published version
        7. Increment version in package.json, add -snapshot or -unpublished or something like that, and commit master

            sophistifunk Josh McDonald
            sophistifunk Josh McDonald
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: