Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

CI/CD-template-added #47

Merged

Conversation

georgioupanayiotis
Copy link
Contributor

  1. Create an npm Account:
    If you don't already have one, create an npm account at https://www.npmjs.com/signup.

  2. To keep sensitive information like your npm token secure, you'll need to add them as secrets in your GitHub repository:

NPM_TOKEN: Your npm authentication token.
GH_TOKEN: A GitHub personal access token for deploying GitHub releases.

  1. Ensure that your library follows semantic versioning (SemVer) by updating the version number in your package.json file with each release. GitHub Actions will only publish a new version when a new tag is pushed with an updated version.

  2. Deploy a Release:

To create a new release, use the GitHub Releases feature. You can create a new release through the GitHub web interface or by creating a new tag and pushing it to the repository. Remember to attach a changelog and any release notes for users.

git tag v1.0.0  # Replace with your desired version number
git push --tags
  1. Monitor the Workflow:

Once your workflow is set up, you can monitor it under the "Actions" tab in your GitHub repository. You will see the workflow running when a new tag is pushed, and it will publish your package to npm automatically.

  1. npm Verify:
    After publishing, you can verify that your package is available on npm by running:
bash
Copy code
npm view react-native-braintree

@vasylnahuliak vasylnahuliak merged commit f328260 into ekreative:master Oct 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants