Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GENERATE_LOCALES=cs,es,de
2 changes: 0 additions & 2 deletions .env.example

This file was deleted.

18 changes: 0 additions & 18 deletions .eslintrc

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/.build.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/localazy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Upload Locales

on:
push:
paths:
- 'src/data/translations/*.json'
branches: [main]

jobs:
localazy-upload:
name: Upload strings to Localazy
runs-on: [self-hosted, Linux]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Upload locales
uses: localazy/upload@v1
with:
read_key: ${{ secrets.LOCALAZY_READ_KEY }}
write_key: ${{ secrets.LOCALAZY_WRITE_KEY }}
31 changes: 31 additions & 0 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: QA checks

on:
pull_request:
branches:
- main

jobs:
qa:
name: Code Quality
runs-on: [self-hosted, Linux]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc

- name: Install dependencies
run: npm ci

- name: Lint source files
run: npm run lint

- name: Prettier
run: npm run prettier

- name: Build package
run: npm run build
47 changes: 47 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Release CI

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
ci:
name: CI Init
runs-on: [self-hosted, Linux]
outputs:
action: ${{ steps.init.outputs.action }}
steps:
- id: init
uses: localazy/release/init@v2

prepare:
name: Prepare Release PR
needs: ci
if: needs.ci.outputs.action == 'prepare'
runs-on: [self-hosted, Linux]
steps:
- uses: localazy/release/prepare@v2
with:
node-version-file: .nvmrc
app-id: ${{ secrets.AUTH_APP_ID }}
app-key: ${{ secrets.AUTH_APP_KEY }}
npm-token: ${{ secrets.NPM_AUTH_TOKEN_PUBLIC }}

publish:
name: Publish Release
needs: ci
if: needs.ci.outputs.action == 'publish'
runs-on: [self-hosted, Linux]
steps:
- uses: localazy/release/publish@v2
with:
node-version-file: .nvmrc
app-id: ${{ secrets.AUTH_APP_ID }}
app-key: ${{ secrets.AUTH_APP_KEY }}
npm-publish: public
npm-token: ${{ secrets.NPM_AUTH_TOKEN_PUBLIC }}
14 changes: 13 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
node_modules
/lib
/dist
/coverage
.env
localazy.keys.json
/bin

# IDE/Editor
.idea
.vscode

# Husky hooks
.husky/_/

# Prettier and ESLint cache
.cache
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run check
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CHANGELOG.md
Loading