mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-19 01:17:18 +02:00
chore: Inherit secrets for workflow calls (#7251)
Based on https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows
This commit is contained in:
parent
c8a469dec1
commit
f32f9c15c8
3
.github/workflows/publish-new-version.yaml
vendored
3
.github/workflows/publish-new-version.yaml
vendored
@ -113,12 +113,14 @@ jobs:
|
|||||||
publish-docker:
|
publish-docker:
|
||||||
needs: build
|
needs: build
|
||||||
uses: ./.github/workflows/docker_publish.yaml
|
uses: ./.github/workflows/docker_publish.yaml
|
||||||
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
version: ${{ github.event.inputs.version }}
|
version: ${{ github.event.inputs.version }}
|
||||||
|
|
||||||
publish-npm:
|
publish-npm:
|
||||||
needs: build
|
needs: build
|
||||||
uses: ./.github/workflows/release.yaml
|
uses: ./.github/workflows/release.yaml
|
||||||
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
version: ${{ github.event.inputs.version }}
|
version: ${{ github.event.inputs.version }}
|
||||||
|
|
||||||
@ -132,5 +134,6 @@ jobs:
|
|||||||
needs: publish-docker
|
needs: publish-docker
|
||||||
if: ${{ github.event.inputs.update-version-function == 'true' }}
|
if: ${{ github.event.inputs.update-version-function == 'true' }}
|
||||||
uses: ./.github/workflows/update_version_for_version_checker.yml
|
uses: ./.github/workflows/update_version_for_version_checker.yml
|
||||||
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
version: ${{ github.event.inputs.version }}
|
version: ${{ github.event.inputs.version }}
|
||||||
|
24
package.json
24
package.json
@ -82,9 +82,7 @@
|
|||||||
"testTimeout": 10000,
|
"testTimeout": 10000,
|
||||||
"globalSetup": "./scripts/jest-setup.js",
|
"globalSetup": "./scripts/jest-setup.js",
|
||||||
"transform": {
|
"transform": {
|
||||||
"^.+\\.tsx?$": [
|
"^.+\\.tsx?$": ["@swc/jest"]
|
||||||
"@swc/jest"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
|
||||||
"testPathIgnorePatterns": [
|
"testPathIgnorePatterns": [
|
||||||
@ -93,13 +91,7 @@
|
|||||||
"/frontend/",
|
"/frontend/",
|
||||||
"/website/"
|
"/website/"
|
||||||
],
|
],
|
||||||
"moduleFileExtensions": [
|
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json"],
|
||||||
"ts",
|
|
||||||
"tsx",
|
|
||||||
"js",
|
|
||||||
"jsx",
|
|
||||||
"json"
|
|
||||||
],
|
|
||||||
"coveragePathIgnorePatterns": [
|
"coveragePathIgnorePatterns": [
|
||||||
"/node_modules/",
|
"/node_modules/",
|
||||||
"/dist/",
|
"/dist/",
|
||||||
@ -237,14 +229,8 @@
|
|||||||
"tough-cookie": "4.1.3"
|
"tough-cookie": "4.1.3"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{js,ts}": [
|
"*.{js,ts}": ["biome check --apply --no-errors-on-unmatched"],
|
||||||
"biome check --apply --no-errors-on-unmatched"
|
"*.{jsx,tsx}": ["biome check --apply --no-errors-on-unmatched"],
|
||||||
],
|
"*.json": ["biome format --write --no-errors-on-unmatched"]
|
||||||
"*.{jsx,tsx}": [
|
|
||||||
"biome check --apply --no-errors-on-unmatched"
|
|
||||||
],
|
|
||||||
"*.json": [
|
|
||||||
"biome format --write --no-errors-on-unmatched"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user