bats-assert icon indicating copy to clipboard operation
bats-assert copied to clipboard

Publish to NPM registry.

Open pauldruce opened this issue 10 months ago • 1 comments

Summary of changes:

  • I've added a github workflow which will publish this project as a package on npmjs and the github npm registry.
    • This is essentially the same process that bats-core is using to publish as a node package.
    • This requires a secret called NPM_TOKEN for the existing project to work for the npmjs registry.
    • Publishing to the GitHub npm registry should work without any extra secrets.
  • Listed bats and bats-support as actual dependencies, as bats-assert isn't much use without them.
  • A smoke test of the npm installation was added to show it works.

This PR addressing #70

pauldruce avatar Feb 04 '25 11:02 pauldruce

From looking at the current npmjs project. I expect that @jasonkarns should take a look at this, as in order to successfully publish to npmjs, we need an access token for the project.

pauldruce avatar Feb 04 '25 12:02 pauldruce

I ran into #70 as well today; it'd be great if this PR could fix that.

Is @jasonkarns still the person that should look at this?

TurekBot avatar May 07 '25 20:05 TurekBot

@jasonkarns, are you the person to take a look at this?

TurekBot avatar Aug 11 '25 15:08 TurekBot

closing with #81 having landed. but i appreciate the work put into this and the ideas shared within. will have followup PRs to reflect the package authorship cleanup and additional tests.

jasonkarns avatar Aug 15 '25 19:08 jasonkarns