-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from tolgee/jancizmar/prepare-for-release
The initial version
- Loading branch information
Showing
64 changed files
with
16,504 additions
and
1,541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Enforce Unix newlines | ||
* text=auto eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Pre-release | ||
on: | ||
push: | ||
branches: [ next, prerelease ] | ||
|
||
jobs: | ||
prerelease: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.npm | ||
key: cache-node-modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | ||
- name: Install dependencies | ||
run: npm ci | ||
|
||
# We need to get ready for this first! | ||
# - name: Build the CLI | ||
# run: npm run build | ||
# - name: Run npm release | ||
# run: npm run release | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# GIT_AUTHOR_NAME: Tolgee Machine | ||
# GIT_AUTHOR_EMAIL: [email protected] | ||
# GIT_COMMITTER_NAME: Tolgee Machine | ||
# GIT_COMMITTER_EMAIL: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Release | ||
on: | ||
workflow_run: | ||
workflows: [ Test ] | ||
branches: [ main ] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
release: | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.npm | ||
key: cache-node-modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build the CLI | ||
run: npm run build | ||
|
||
# - name: Run npm release | ||
# run: npm run release -- -d | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# GIT_AUTHOR_NAME: Tolgee Machine | ||
# GIT_AUTHOR_EMAIL: [email protected] | ||
# GIT_COMMITTER_NAME: Tolgee Machine | ||
# GIT_COMMITTER_EMAIL: [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,4 @@ jobs: | |
run: npm ci | ||
|
||
- name: Run Tests | ||
run: npm run test | ||
run: npm run test:unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Migrate", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/src/cli.ts", | ||
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/tsx", | ||
"args": [ | ||
"migrate", | ||
"-p", | ||
"src/**/*.tsx", | ||
"-k", | ||
"<your open api API key>" | ||
], | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"cwd": "<migration project dir>", | ||
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/**"] | ||
}, | ||
{ | ||
"name": "Upload keys", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "${workspaceFolder}/src/cli.ts", | ||
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/tsx", | ||
"args": [ | ||
"upload-keys", | ||
"-ak", | ||
"<your tolgee API key>" | ||
], | ||
"console": "integratedTerminal", | ||
"internalConsoleOptions": "neverOpen", | ||
"cwd": "<migration project dir>", | ||
"skipFiles": ["<node_internals>/**", "${workspaceFolder}/node_modules/**"] | ||
} | ||
] | ||
} |
Oops, something went wrong.