-
Notifications
You must be signed in to change notification settings - Fork 20
57 lines (50 loc) · 1.52 KB
/
locize-sync.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Sync added and deleted keys to locize
on:
push:
branches:
- pramodcog/UX-1220
jobs:
locize-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
always-auth: true
- name: Setup Cognite CICD NPM
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Setup Cognite CICD Yarn
run: |
echo "
npmScopes:
cognite:
npmAlwaysAuth: true
npmAuthToken: \"\${NPM_TOKEN}\"
npmRegistryServer: "https://registry.npmjs.org"
" >> .yarnrc.yml
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Install NPM dependencies
working-directory: react-components
run: yarn install --immutable
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: 'Save added keys to locize'
working-directory: react-components
run: yarn save-missing
env:
LOCIZE_API_KEY: ${{ secrets.LOCIZE_API_KEY }}
- name: 'Remove deleted keys from locize'
working-directory: react-components
run: yarn remove-deleted
env:
LOCIZE_API_KEY: ${{ secrets.LOCIZE_API_KEY }}