> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/platform/guides/developer-guide/ui-developer-guide/migration-guide/package-publishing-process.md).

# Package Publishing Process

## Version Updates

Once all changes were completed, the packages were assigned new versions and published. Below is a list of updated versions:

| Package Name                            | Version       |
| --------------------------------------- | ------------- |
| @egovernments/digit-ui-libraries        | 2.0.0-rc19-04 |
| @egovernments/digit-ui-components       | 2.0.0-rc19-04 |
| @egovernments/digit-ui-react-components | 2.0.0-rc19-04 |
| @egovernments/digit-ui-svg-components   | 2.0.0-rc19-04 |

## Github actions workflow

Since there were modifications in the build process, the GitHub Actions workflow was updated accordingly. Below is the modified GitHub Actions file handling the package publishing process:

```
name: Node.js Publish UI Packages

on:
  push:
    branches: [ 'develop-webpack' ]
    paths:
      - 'webpack/react-components/**'
      - 'webpack/svg-components/**'
      - 'webpack/ui-components/**'
      - 'webpack/libraries/**'
      - 'react/modules/core/**'


jobs:
  setup-python-and-build-tools:
    name: Set up Python and Build Tools
    runs-on: ubuntu-latest
    steps:
      - name: Update apt and install Python 3 and build tools
        run: |
          sudo apt-get update
          sudo apt-get install -y python3 python3-pip python3-setuptools build-essential
          sudo apt-get install -y python3-distutils || sudo apt-get install -y python3-dev


  publish-webpack-ui-components: 
    name: Publish Webpack UI Components
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: 20
          registry-url: https://registry.npmjs.org/
      - name: Install dependencies for SVG Components
        run: |
          cd webpack/ui-components/
          rm -rf node_modules yarn.lock
          yarn install --frozen-lockfile
          npm publish --tag core-webpack-v0.1
        env:
          NODE_AUTH_TOKEN: ${{ secrets.npm_token }}


  publish-webpack-react-components:
    name: Publish Webpack React Components
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: 20
          registry-url: https://registry.npmjs.org/
      - name: Install dependencies for Webpack React Components
        run: |
          cd webpack/react-components/
          rm -rf node_modules yarn.lock
          yarn install --frozen-lockfile
          npm publish --tag core-webpack-v0.1
        env:
          NODE_AUTH_TOKEN: ${{ secrets.npm_token }}


  publish-webpack-svg-components:
    name: Publish Webpack SVG Components
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: 20
          registry-url: https://registry.npmjs.org/
      - name: Install dependencies for Webpack SVG Components
        run: |
          cd webpack/svg-components/
          rm -rf node_modules yarn.lock
          yarn install --frozen-lockfile
          npm publish --tag core-webpack-v0.1
        env:
          NODE_AUTH_TOKEN: ${{ secrets.npm_token }}


  publish-react-module-libraries:
    name: Publish React Module Libraries
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: 20
          registry-url: https://registry.npmjs.org/
      - name: Install dependencies for React Libraries
        run: |
          cd webpack/libraries/
          rm -rf node_modules yarn.lock
          yarn install --frozen-lockfile
          npm publish --tag libraries-v0.1
        env:
          NODE_AUTH_TOKEN: ${{ secrets.npm_token }}


  publish-react-module-core:
    name: Publish React Module Core
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v2
        with:
          node-version: 20
          registry-url: https://registry.npmjs.org/
      - name: Install dependencies for React Core
        run: |
          cd react/modules/core/
          rm -rf node_modules yarn.lock
          yarn install --frozen-lockfile
          npm publish --tag core-module-v0.1
        env:
          NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
```

## Publishing Issues & Fixes

#### Issue: 404 Package Not Found Error

* During the publishing process, we encountered an error where the package was not found (404 error).

Solution: The issue was resolved by upgrading the package versions to ensure no conflicts with existing published versions.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.digit.org/platform/guides/developer-guide/ui-developer-guide/migration-guide/package-publishing-process.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
