mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Merge branch 'develop' into release/2024-11-12
Some checks failed
Transifex Push / transifex-push (push) Has been cancelled
Some checks failed
Transifex Push / transifex-push (push) Has been cancelled
This commit is contained in:
commit
a47e4a7baa
4 changed files with 32 additions and 6 deletions
26
.github/workflows/tx-push.yml
vendored
Normal file
26
.github/workflows/tx-push.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
|||
name: Transifex Push
|
||||
|
||||
on:
|
||||
push: # Runs whenever a commit is pushed to the repository
|
||||
branches: [master, develop, release/*] # ...on any of these branches
|
||||
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
|
||||
|
||||
jobs:
|
||||
transifex-push:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
|
||||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
|
||||
with:
|
||||
cache: 'npm'
|
||||
node-version-file: '.nvmrc'
|
||||
- name: info
|
||||
run: |
|
||||
echo "Scratch environment: ${{ vars.SCRATCH_ENV }}"
|
||||
echo "Node version: $(node --version)"
|
||||
echo "NPM version: $(npm --version)"
|
||||
- run: npm ci
|
||||
- name: push strings to Transifex
|
||||
run: npm run i18n:push --execute
|
||||
env:
|
||||
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
|
@ -69,7 +69,7 @@ glob('src/views/**/l10n.json', {}, function (er, files) {
|
|||
|
||||
let cmd;
|
||||
resources.forEach(resource => {
|
||||
cmd = `$(npm bin)/tx-push-src scratch-website ${resource.resourceName} ${resource.filename}`;
|
||||
cmd = `tx-push-src scratch-website ${resource.resourceName} ${resource.filename}`;
|
||||
if (execute) {
|
||||
// push all the source files to transifex - force update
|
||||
process.stdout.write(`running command: ${cmd}\n`);
|
||||
|
|
8
package-lock.json
generated
8
package-lock.json
generated
|
@ -112,7 +112,7 @@
|
|||
"sass": "1.80.6",
|
||||
"sass-loader": "10.5.2",
|
||||
"scratch-gui": "4.1.2",
|
||||
"scratch-l10n": "4.0.20",
|
||||
"scratch-l10n": "4.0.24",
|
||||
"selenium-webdriver": "4.26.0",
|
||||
"slick-carousel": "1.8.1",
|
||||
"stream-browserify": "3.0.0",
|
||||
|
@ -22461,9 +22461,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/scratch-l10n": {
|
||||
"version": "4.0.20",
|
||||
"resolved": "https://registry.npmjs.org/scratch-l10n/-/scratch-l10n-4.0.20.tgz",
|
||||
"integrity": "sha512-jysbWbGt3wQO1q1wftyN1wqDeLpMPRaOUrGbtiI2hBFy9QQGhWbmmrrNYqtP1MxEkXdW12FZYDDdNu2K+Mn8sg==",
|
||||
"version": "4.0.24",
|
||||
"resolved": "https://registry.npmjs.org/scratch-l10n/-/scratch-l10n-4.0.24.tgz",
|
||||
"integrity": "sha512-8HoTKkTWGCUiXvYJmhdsEEei6PJ50Ffll3vgc5shSCgYhR1asSMRp1nYq80o7BJyT+0/FOXfPCheMv4+gPjBvw==",
|
||||
"dev": true,
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
|
|
|
@ -147,7 +147,7 @@
|
|||
"sass": "1.80.6",
|
||||
"sass-loader": "10.5.2",
|
||||
"scratch-gui": "4.1.2",
|
||||
"scratch-l10n": "4.0.20",
|
||||
"scratch-l10n": "4.0.24",
|
||||
"selenium-webdriver": "4.26.0",
|
||||
"slick-carousel": "1.8.1",
|
||||
"stream-browserify": "3.0.0",
|
||||
|
|
Loading…
Reference in a new issue