Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.39 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.39 KB

React Admin Enterprise Edition action

This action sets up your package manager (npm or yarn) to use the React Admin Enterprise Edition private registry, which is required to download the private modules.

It works by creating a .npmrc file (or a .yarnrc.yml file if you use Yarn v2 or more) and adding the CI authentication token found on the React Admin Enterprise Edition setup page.

Environnement variable

RA_EE_CI_TOKEN

You need to provide your React Admin Enterprise Edition CI authentication token in the RA_EE_CI_TOKEN environment variable.

Notice: Do not paste it directly in your repository but use Github Encrypted Secrets instead.

Example usage

Create a file: .github/workflows/ra-ee.yml

name: React Admin Enterprise Edition CI token Action
on: [push]

jobs:
  ra_enterprise_action_workflow:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Add React Admin Enterprise Edition CI token
        uses: react-admin/[email protected]
        env:
          RA_EE_CI_TOKEN: ${{secrets.RA_EE_CI_TOKEN}}
      - name: NPM install
        run: npm install