Skip to content

Automate publishing to NPM #22

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 3 commits into from
Jun 10, 2023
Merged

Conversation

jasongitmail
Copy link
Contributor

I thought this might be helpful for you.

You'd just need to generate an NPM Token with the automation permission and add NPM_TOKEN as a secret on this Github repo.

Then any PR that is merged to main that bumps the version # in package.json will be automatically published to NPM.

There don't appear to be any tests in etherCorps/sveltekit-og currently, so I left a comment there; enabling this line will only publish to NPM only if tests pass successfully.

@vercel
Copy link

vercel bot commented Jun 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sveltekit-og ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2023 9:38am

@theetherGit
Copy link
Collaborator

@jasongitmail we have to build and add package dir to github, or you have to change config to make to build then change dir and then publish.

@theetherGit
Copy link
Collaborator

I think it looks good to go now.
We can test it as i'm going to push version for your patches.

@jasongitmail
Copy link
Contributor Author

Updated. The package property is a path to a dir that contains the package.json of the package to be deployed, so this should work.

@theetherGit theetherGit merged commit 7b5324e into etherCorps:main Jun 10, 2023
@theetherGit
Copy link
Collaborator

@jasongitmail please update publish file action node installation error.

@jasongitmail
Copy link
Contributor Author

Oh shoot. I wanted to try lts because noticed it in the docs. I have used a number in the past; will switch to that.

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.

2 participants