File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88 strategy :
99 matrix :
10- node-version : [18 .x]
10+ node-version : [24 .x]
1111 env :
12- NODE_OPTIONS : ' --max_old_space_size=4096'
12+ NODE_OPTIONS : " --max_old_space_size=4096"
1313 steps :
1414 - name : Checkout code
1515 uses : actions/checkout@v4
1818 uses : actions/setup-node@v4
1919 with :
2020 node-version : ${{ matrix.node-version }}
21- cache : ' npm'
22- cache-dependency-path : ' **/package-lock.json'
21+ cache : " npm"
22+ cache-dependency-path : " **/package-lock.json"
2323
2424 - name : Install dependencies
2525 run : npm ci
Original file line number Diff line number Diff line change 88 strategy :
99 fail-fast : false
1010 matrix :
11- node-version : [18 .x]
11+ node-version : [24 .x]
1212 test : [1, 2, 3, 4, 5]
1313 env :
14- NODE_OPTIONS : ' --max_old_space_size=4096'
14+ NODE_OPTIONS : " --max_old_space_size=4096"
1515 steps :
1616 - name : Checkout code
1717 uses : actions/checkout@v4
2020 uses : actions/setup-node@v4
2121 with :
2222 node-version : ${{ matrix.node-version }}
23- cache : ' npm'
24- cache-dependency-path : ' **/package-lock.json'
23+ cache : " npm"
24+ cache-dependency-path : " **/package-lock.json"
2525
2626 - name : Install dependencies
2727 run : npm ci
Original file line number Diff line number Diff line change 77 - main
88
99env :
10- NODE_VERSION : 18 .x
10+ NODE_VERSION : 24 .x
1111
1212jobs :
1313 deploy :
1414 runs-on : ubuntu-latest
1515 env :
16- NODE_OPTIONS : ' --max_old_space_size=4096'
16+ NODE_OPTIONS : " --max_old_space_size=4096"
1717 steps :
1818 - name : Generate Github Token for CI Bot
1919 uses : actions/create-github-app-token@v1
3131 uses : actions/setup-node@v4
3232 with :
3333 node-version : ${{ env.NODE_VERSION }}
34- cache : ' npm'
35- cache-dependency-path : ' **/package-lock.json'
34+ cache : " npm"
35+ cache-dependency-path : " **/package-lock.json"
3636
3737 - name : Install dependencies
3838 run : npm ci
Original file line number Diff line number Diff line change 77env :
88 LOKALISE_PROJECT_ID : ${{ vars.LOKALISE_PROJECT_ID }}
99 LOKALISE_API_TOKEN : ${{ secrets.LOKALISE_API_TOKEN }}
10- NODE_VERSION : 18 .x
10+ NODE_VERSION : 24 .x
1111 CI : true
1212
1313jobs :
9191 uses : actions/setup-node@v4
9292 with :
9393 node-version : ${{ env.NODE_VERSION }}
94- cache : ' npm'
95- cache-dependency-path : ' **/package-lock.json'
94+ cache : " npm"
95+ cache-dependency-path : " **/package-lock.json"
9696
9797 - name : Install dependencies
9898 run : npm ci
Original file line number Diff line number Diff line change 77env :
88 LOKALISE_PROJECT_ID : ${{ vars.LOKALISE_PROJECT_ID }}
99 LOKALISE_API_TOKEN : ${{ secrets.LOKALISE_API_TOKEN }}
10- NODE_VERSION : 18 .x
10+ NODE_VERSION : 24 .x
1111 CI : true
1212
1313jobs :
9191 uses : actions/setup-node@v4
9292 with :
9393 node-version : ${{ env.NODE_VERSION }}
94- cache : ' npm'
95- cache-dependency-path : ' **/package-lock.json'
94+ cache : " npm"
95+ cache-dependency-path : " **/package-lock.json"
9696
9797 - name : Install dependencies
9898 run : npm ci
@@ -136,7 +136,7 @@ jobs:
136136 | **New Branch for i18n** | [\`${process.env.NEW_BRANCH}\`](${branchURL}) |
137137 | **Last Commit SHA** | ${process.env.LAST_COMMIT_SHA} |
138138
139- Maintainers can comment \`.i18n-update-pull\` after translation is done to trigger the i18n pull workflow and pull the changes back to Github.
139+ Maintainers can comment \`.i18n-update-pull\` after translation is done to trigger the i18n pull workflow and pull the changes back to Github.
140140 `;
141141
142142 github.rest.issues.createComment({
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ name: i18n-update-scheduled
55
66on :
77 schedule :
8- - cron : ' 0 0 * * 0'
8+ - cron : " 0 0 * * 0"
99 push :
1010 branches :
1111 - develop
1616 LOKALISE_API_TOKEN : ${{ secrets.LOKALISE_API_TOKEN }}
1717 BRANCH : i18n/develop
1818 LOKALISE_BRANCH : master
19- NODE_VERSION : 18 .x
19+ NODE_VERSION : 24 .x
2020 CI : true
2121
2222jobs :
5555 uses : actions/setup-node@v4
5656 with :
5757 node-version : ${{ env.NODE_VERSION }}
58- cache : ' npm'
59- cache-dependency-path : ' **/package-lock.json'
58+ cache : " npm"
59+ cache-dependency-path : " **/package-lock.json"
6060
6161 - name : Install dependencies
6262 run : npm ci
Original file line number Diff line number Diff line change 66 - develop
77 types : [closed]
88
9+ permissions :
10+ id-token : write # Required for OIDC
11+ contents : write
12+
913env :
10- NODE_VERSION : 18 .x
14+ NODE_VERSION : 24 .x
1115
1216jobs :
1317 release :
1418 runs-on : ubuntu-latest
1519 if : github.event.pull_request.merged && startsWith(github.head_ref, 'releases/')
1620 env :
17- NODE_OPTIONS : ' --max_old_space_size=4096'
21+ NODE_OPTIONS : " --max_old_space_size=4096"
1822 steps :
1923 - name : Generate Github Token for CI Bot
2024 uses : actions/create-github-app-token@v1
3640 uses : actions/setup-node@v4
3741 with :
3842 node-version : ${{ env.NODE_VERSION }}
39- cache : ' npm'
40- cache-dependency-path : ' **/package-lock.json'
43+ cache : " npm"
44+ cache-dependency-path : " **/package-lock.json"
45+
46+ # Ensure npm 11.5.1 or later is installed (for OIDC)
47+ - name : Update npm
48+ run : npm install -g npm@11.6.4
4149
4250 - name : Install dependencies
4351 run : npm ci
9199
92100 - name : Publish SDK to NPM
93101 if : startsWith(github.head_ref, 'releases/sdk-v')
94- run : |
95- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
96- npm publish --access=public
97102 working-directory : ./build/sdk
98- env :
99- NPM_TOKEN : ${{secrets.NPM_TOKEN}}
103+ run : npm publish --access=public
100104
101105 - name : Create pull request to main (App)
102106 if : startsWith(github.head_ref, 'releases/v')
You can’t perform that action at this time.
0 commit comments