-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
30 lines (30 loc) · 906 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "React Admin Enterprise Edition Action"
description: "Set up your CI to install EE packages"
author: "Marmelab"
branding:
icon: "file-plus"
color: "blue"
env:
RA_EE_CI_TOKEN:
description: "React Admin Enterprise Edition CI authentication token"
required: true
runs:
using: "composite"
steps:
# create `.npmrc` file to be used by npm or Yarn v1
- run: |
echo "
//registry.marmelab.com/:_authToken=${{ env.RA_EE_CI_TOKEN }}
@react-admin:registry=https://registry.marmelab.com
" >> $HOME/.npmrc
shell: bash
# create `.yarnrc.yml` file to be used by Yarn v2 or more
- run: |
echo '
npmScopes:
"react-admin":
npmAlwaysAuth: true
npmAuthToken: "${{ env.RA_EE_CI_TOKEN }}"
npmRegistryServer: "https://registry.marmelab.com"
' >> $HOME/.yarnrc.yml
shell: bash