-
Notifications
You must be signed in to change notification settings - Fork 4
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 #154 from seznam/dev-ops
Turbo, eslint update, types exports, new tsconfig...
- Loading branch information
Showing
62 changed files
with
1,939 additions
and
2,608 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,18 @@ | ||
--- | ||
"@ima/cli-plugin-less-constants": patch | ||
"@ima/plugin-analytic-fb-pixel": patch | ||
"@ima/cli-plugin-scramble-css": patch | ||
"@ima/plugin-analytic-google": patch | ||
"@ima/cli-plugin-legacy-css": patch | ||
"@ima/plugin-local-storage": patch | ||
"@ima/plugin-script-loader": patch | ||
"@ima/plugin-style-loader": patch | ||
"@ima/cli-plugin-analyze": patch | ||
"@ima/plugin-http-client": patch | ||
"@ima/plugin-useragent": patch | ||
"@ima/plugin-analytic": patch | ||
"@ima/plugin-logger": patch | ||
"@ima/plugin-atoms": patch | ||
--- | ||
|
||
Turbo, eslint update, types exports, new tsconfig |
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,16 @@ | ||
name: "Prepare Node.js workspace" | ||
description: "Prepares Node.js workspace with installed dependencies" | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
shell: bash | ||
run: npm ci |
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,44 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- next | ||
pull_request: | ||
workflow_call: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ci: | ||
name: CI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/prepare-workspace | ||
|
||
- name: Run Lint | ||
run: npm run lint | ||
|
||
- name: Run Stylelint | ||
run: npm run stylelint | ||
|
||
- name: Run Tests | ||
run: npm run test:all | ||
|
||
release: | ||
if: github.ref_name == 'master' || github.ref_name == 'next' | ||
needs: [ci] | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/prepare-workspace | ||
|
||
- name: Release new versions | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npm run release:publish |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
**/coverage/ | ||
.eslintcache | ||
*.tgz | ||
**/.turbo |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
const { | ||
defaultConfig, | ||
typescriptDeclarationsPlugin, | ||
} = require('@ima/plugin-cli'); | ||
|
||
/** | ||
* @type import('@ima/plugin-cli').ImaPluginConfig[] | ||
*/ | ||
module.exports = [ | ||
{ | ||
...defaultConfig, | ||
plugins: [ | ||
typescriptDeclarationsPlugin({ | ||
allowFailure: false, | ||
additionalArgs: ['--skipLibCheck'], | ||
}), | ||
], | ||
}, | ||
]; |
Oops, something went wrong.