diff --git a/.github/workflows/release-draft-create.yaml b/.github/workflows/release-draft-create.yaml index 526548ec494..f24487521fa 100644 --- a/.github/workflows/release-draft-create.yaml +++ b/.github/workflows/release-draft-create.yaml @@ -8,6 +8,9 @@ on: paths: - 'package.json' +permissions: + contents: read + jobs: build: runs-on: ubuntu-latest @@ -100,6 +103,9 @@ jobs: publish_types: needs: build + permissions: + contents: read + id-token: write uses: ./.github/workflows/release-npm-types.yaml with: version: ${{ needs.build.outputs.version }} diff --git a/.github/workflows/release-npm-types.yaml b/.github/workflows/release-npm-types.yaml index db896fcea1e..9fd3e31f24c 100644 --- a/.github/workflows/release-npm-types.yaml +++ b/.github/workflows/release-npm-types.yaml @@ -40,6 +40,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: read + id-token: write steps: - name: Validate inputs shell: bash @@ -74,6 +75,7 @@ jobs: with: ref: ${{ steps.resolve_ref.outputs.ref }} fetch-depth: 1 + persist-credentials: false - name: Install pnpm uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 @@ -86,10 +88,13 @@ jobs: registry-url: https://registry.npmjs.org - name: Install dependencies - run: pnpm install --frozen-lockfile + run: pnpm install --frozen-lockfile --ignore-scripts env: PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' + - name: Build workspace packages + run: pnpm build:packages + - name: Build types run: pnpm build:types @@ -152,7 +157,7 @@ jobs: - name: Publish package if: steps.check_npm.outputs.exists == 'false' - run: pnpm publish --access public --tag "$DIST_TAG" --no-git-checks + run: pnpm publish --access public --tag "$DIST_TAG" --no-git-checks --ignore-scripts working-directory: dist env: DIST_TAG: ${{ steps.dist_tag.outputs.tag }} diff --git a/tsconfig.types.json b/tsconfig.types.json index 914224ad83c..dcddbc1a858 100644 --- a/tsconfig.types.json +++ b/tsconfig.types.json @@ -47,6 +47,10 @@ "dist", "**/*.vue", "**/*.spec.ts", - "**/*.test.ts" + "**/*.test.ts", + "**/*.stories.ts", + "**/__mocks__/**", + "**/__fixtures__/**", + "src/storybook/**" ] }