From f32f9c15c87243e8766ce01125eafe36bf57dc55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Mon, 3 Jun 2024 15:09:00 +0200 Subject: [PATCH] chore: Inherit secrets for workflow calls (#7251) Based on https://docs.github.com/en/enterprise-cloud@latest/actions/using-workflows/reusing-workflows --- .github/workflows/publish-new-version.yaml | 3 +++ package.json | 24 +++++----------------- 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/.github/workflows/publish-new-version.yaml b/.github/workflows/publish-new-version.yaml index 16c3564927..1f44f66d32 100644 --- a/.github/workflows/publish-new-version.yaml +++ b/.github/workflows/publish-new-version.yaml @@ -113,12 +113,14 @@ jobs: publish-docker: needs: build uses: ./.github/workflows/docker_publish.yaml + secrets: inherit with: version: ${{ github.event.inputs.version }} publish-npm: needs: build uses: ./.github/workflows/release.yaml + secrets: inherit with: version: ${{ github.event.inputs.version }} @@ -132,5 +134,6 @@ jobs: needs: publish-docker if: ${{ github.event.inputs.update-version-function == 'true' }} uses: ./.github/workflows/update_version_for_version_checker.yml + secrets: inherit with: version: ${{ github.event.inputs.version }} diff --git a/package.json b/package.json index 3f72af43a8..84e31c2e47 100644 --- a/package.json +++ b/package.json @@ -82,9 +82,7 @@ "testTimeout": 10000, "globalSetup": "./scripts/jest-setup.js", "transform": { - "^.+\\.tsx?$": [ - "@swc/jest" - ] + "^.+\\.tsx?$": ["@swc/jest"] }, "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", "testPathIgnorePatterns": [ @@ -93,13 +91,7 @@ "/frontend/", "/website/" ], - "moduleFileExtensions": [ - "ts", - "tsx", - "js", - "jsx", - "json" - ], + "moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json"], "coveragePathIgnorePatterns": [ "/node_modules/", "/dist/", @@ -237,14 +229,8 @@ "tough-cookie": "4.1.3" }, "lint-staged": { - "*.{js,ts}": [ - "biome check --apply --no-errors-on-unmatched" - ], - "*.{jsx,tsx}": [ - "biome check --apply --no-errors-on-unmatched" - ], - "*.json": [ - "biome format --write --no-errors-on-unmatched" - ] + "*.{js,ts}": ["biome check --apply --no-errors-on-unmatched"], + "*.{jsx,tsx}": ["biome check --apply --no-errors-on-unmatched"], + "*.json": ["biome format --write --no-errors-on-unmatched"] } }