<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nabeel Shakeel</title>
    <description>The latest articles on DEV Community by Nabeel Shakeel (@nabeel-shakeel).</description>
    <link>https://dev.to/nabeel-shakeel</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F715423%2Fe8936b32-13f1-485a-8d08-7bcda684357d.jpeg</url>
      <title>DEV Community: Nabeel Shakeel</title>
      <link>https://dev.to/nabeel-shakeel</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nabeel-shakeel"/>
    <language>en</language>
    <item>
      <title>#GitHubHack23: React Native Versioning Pipeline</title>
      <dc:creator>Nabeel Shakeel</dc:creator>
      <pubDate>Sat, 13 May 2023 12:27:21 +0000</pubDate>
      <link>https://dev.to/nabeel-shakeel/githubhack23-react-native-versioning-pipeline-j8a</link>
      <guid>https://dev.to/nabeel-shakeel/githubhack23-react-native-versioning-pipeline-j8a</guid>
      <description>&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;A Composite GitHub Action named &lt;a href="https://github.com/nabeel-shakeel/react-native-version"&gt;react-native-version&lt;/a&gt; which bumps the version in &lt;code&gt;package.json&lt;/code&gt;, android and iOS related build/config files along with generating GiHub Release by automatically uploading assets, generating changelogs, handling pre-releases, and so on.&lt;/p&gt;

&lt;p&gt;This action can be easily become part of any &lt;code&gt;react-native&lt;/code&gt; CI/CD pipeline. You can look at the repo &lt;a href="https://github.com/nabeel-shakeel/react-native-version"&gt;react-native-sample-app&lt;/a&gt; to see this action working. &lt;/p&gt;

&lt;p&gt;Follow the &lt;a href="https://github.com/nabeel-shakeel/react-native-version"&gt;README&lt;/a&gt; to get started with this action&lt;/p&gt;

&lt;h3&gt;
  
  
  Category Submission:
&lt;/h3&gt;

&lt;p&gt;This project is fall under &lt;code&gt;Phone Friendly&lt;/code&gt; category &lt;/p&gt;

&lt;h3&gt;
  
  
  App Link
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/marketplace/actions/react-native-version"&gt;https://github.com/marketplace/actions/react-native-version&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Screenshots
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Action Published on Marketplace&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--K3HOoJmR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xzbsu9paggz9hnd8cx83.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--K3HOoJmR--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xzbsu9paggz9hnd8cx83.png" alt="react-native-version" width="800" height="585"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Testing action in another repository&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NTUIaPt8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hg5n5zi9ctvcctp4srnn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NTUIaPt8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hg5n5zi9ctvcctp4srnn.png" alt="Testing" width="800" height="349"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Description
&lt;/h3&gt;

&lt;p&gt;One of the important steps in &lt;code&gt;react-native&lt;/code&gt; CI/CD pipeline is to increment/change the version of our Android and iOS apps or else the App Store and Play Store won’t accept them during distribution.&lt;/p&gt;

&lt;p&gt;This involves changing the version in package.json and keeping it as a source of truth. Then sync the updated version in android and iOS config files i.e. &lt;code&gt;build.gradle&lt;/code&gt;, &lt;code&gt;info.plist&lt;/code&gt;. Next is to commit the changes and push them back to repo. Finally, generate a GitHub release to look for new features, fixes and other changes published in that release.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;react-native-version&lt;/code&gt; action automates all these steps and hook into any CI/CD pipeline as a step.&lt;/p&gt;

&lt;h3&gt;
  
  
  Link to Source Code
&lt;/h3&gt;

&lt;p&gt;Checkout the source code of GitHub Action&lt;br&gt;
&lt;a href="https://github.com/nabeel-shakeel/react-native-version"&gt;https://github.com/nabeel-shakeel/react-native-version&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Permissive License
&lt;/h3&gt;

&lt;p&gt;License used is &lt;a href="https://github.com/nabeel-shakeel/react-native-version/blob/main/LICENSE"&gt;Apache-2.0&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Background
&lt;/h2&gt;

&lt;p&gt;I have been working with &lt;code&gt;react-native&lt;/code&gt; for a few years and the CI/CD pipeline comes with a whole bunch of tooling and processes around it. In my projects, it took me a few weeks to set up a complete pipeline from version bump to release management, to Android/iOS build and to upload to App Center as the final step. &lt;/p&gt;

&lt;p&gt;I decided to build this GitHub action to assemble steps involved in &lt;code&gt;version bump&lt;/code&gt; and &lt;code&gt;release management&lt;/code&gt; into one action. This will saves time and less pain for developers while building a 'react-native' CI/CD pipeline.&lt;/p&gt;

&lt;h3&gt;
  
  
  How I built it
&lt;/h3&gt;

&lt;p&gt;I built this GitHub action using a Composite GitHub action approach which is an exciting way to create packaged actions. For the development of this action, I utilized the power  Codespaces.&lt;/p&gt;

&lt;p&gt;This hackathon provides me the perfect opportunity to learn about Github Codespaces, using it for development, manage the &lt;br&gt;
codespaces environment and sharing it with the team along with creating a custom composite action and testing it in workflow.&lt;/p&gt;

&lt;p&gt;The overall development process was filled with learning and challenges. It gave me a deeper understanding of GitHub Actions, Codespaces, and their potential in improving productivity and efficiency. &lt;/p&gt;

&lt;h3&gt;
  
  
  Additional Resources/Info
&lt;/h3&gt;

&lt;p&gt;Following resources helped me to develop this action and understanding the CI/CD flow for react native app&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.github.com/en/actions/creating-actions/creating-a-composite-action"&gt;https://docs.github.com/en/actions/creating-actions/creating-a-composite-action&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/phips28/gh-action-bump-version"&gt;https://github.com/phips28/gh-action-bump-version&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/marvinpinto/action-automatic-releases"&gt;https://github.com/marvinpinto/action-automatic-releases&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/EndBug/add-and-commit"&gt;https://github.com/EndBug/add-and-commit&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;CI Pipeline&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://medium.com/@paramsingh_66174/ci-cd-pipeline-for-react-native-apps-98246237e29d"&gt;https://medium.com/@paramsingh_66174/ci-cd-pipeline-for-react-native-apps-98246237e29d&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.obytes.com/blog/react-native-ci-cd-github-action"&gt;https://www.obytes.com/blog/react-native-ci-cd-github-action&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://bitrise.io/blog/post/react-native-devops-using-ci-cd-pipelines-to-deploy-react-native-apps"&gt;https://bitrise.io/blog/post/react-native-devops-using-ci-cd-pipelines-to-deploy-react-native-apps&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>githubhack23</category>
      <category>reactnative</category>
      <category>cicd</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
