From 71467355933d12d921a12634f4a10aab7fafdbac Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Wed, 11 Nov 2026 15:34:16 +0100 Subject: [PATCH 1/3] Add OIDC variant of the publish-preview workflow GitHub Actions `permissions` cannot be set dynamically, and a reusable workflow that declares `id-token: write` forces every caller to grant it, even when the job is skipped. Add `publish-preview-oidc.yml`, which grants `id-token: write` and publishes without an npm token. Callers pick the file that matches their authentication mode. `publish-preview.yml` stays token-only and keeps its narrower permissions. Move the `is-fork-pull-request`, `react-to-comment`, and `build-preview` jobs into a shared `publish-preview-build.yml` workflow that both workflows call, so the build logic isn't duplicated. --- .github/workflows/publish-preview-build.yml | 193 ++++++++++++++++++ .github/workflows/publish-preview-oidc.yml | 206 ++++++++++++++++++++ .github/workflows/publish-preview.yml | 172 ++-------------- 3 files changed, 412 insertions(+), 159 deletions(-) create mode 100644 .github/workflows/publish-preview-build.yml create mode 100644 .github/workflows/publish-preview-oidc.yml diff --git a/.github/workflows/publish-preview-build.yml b/.github/workflows/publish-preview-build.yml new file mode 100644 index 00000000..9d139859 --- /dev/null +++ b/.github/workflows/publish-preview-build.yml @@ -0,0 +1,193 @@ +name: Publish Preview Builds (Build) + +on: + workflow_call: + inputs: + npm-scope: + description: 'Target NPM scope for preview packages' + type: string + required: true + source-scope: + description: 'Source NPM scope to replace' + type: string + required: true + build-command: + description: 'Command to build the project' + type: string + required: true + is-monorepo: + description: 'Whether the consumer is a monorepo (workspace-aware prepare/publish/message)' + type: boolean + required: true + rename-after-install-and-build: + description: 'Whether packages are renamed to the preview build scope after (true) or before (false) the install and build steps.' + type: boolean + required: true + artifact-retention-days: + description: 'Days to retain build artifacts' + type: number + required: true + secrets: + BUILD_ENV: + description: 'JSON object of environment variables to pass to the build step.' + required: false + +jobs: + is-fork-pull-request: + name: Determine whether this PR is from a fork + runs-on: ubuntu-latest + outputs: + IS_FORK: ${{ steps.is-fork.outputs.IS_FORK }} + steps: + - uses: actions/checkout@v6 + - name: Determine whether this PR is from a fork + id: is-fork + run: echo "IS_FORK=$(gh pr view --json isCrossRepository --jq '.isCrossRepository' "${PR_NUMBER}" )" >> "$GITHUB_OUTPUT" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_NUMBER: ${{ github.event.issue.number }} + + react-to-comment: + name: React to comment + needs: is-fork-pull-request + if: ${{ needs.is-fork-pull-request.outputs.IS_FORK == 'false' }} + runs-on: ubuntu-latest + steps: + - name: Add reaction to trigger comment + run: | + gh api \ + --method POST \ + "repos/${GITHUB_REPOSITORY}/issues/comments/${COMMENT_ID}/reactions" \ + -f content='+1' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMMENT_ID: ${{ github.event.comment.id }} + + build-preview: + name: Build preview + needs: react-to-comment + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: Check out pull request + run: gh pr checkout "${PR_NUMBER}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_NUMBER: ${{ github.event.issue.number }} + + - name: Checkout and setup environment + uses: MetaMask/action-checkout-and-setup@v3 + with: + is-high-risk-environment: true + + - name: Get commit SHA + id: commit-sha + run: echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" + + - name: Install dependencies (pre-build) + if: ${{ inputs.rename-after-install-and-build }} + run: yarn install --no-immutable + + - name: Mask build environment values + env: + BUILD_ENV: ${{ secrets.BUILD_ENV }} + run: | + if [[ -n "$BUILD_ENV" ]]; then + while IFS= read -r line; do + if [[ -n "$line" ]]; then + echo "::add-mask::$line" + fi + done < <(jq --raw-output '.[] | tostring' <<< "$BUILD_ENV") + fi + + - name: Build (pre-rename) + if: ${{ inputs.rename-after-install-and-build }} + env: ${{ fromJSON(secrets.BUILD_ENV || '{}') }} + run: ${{ inputs.build-command }} + + - name: Prepare preview manifests + env: + NPM_SCOPE: ${{ inputs.npm-scope }} + COMMIT_SHA: ${{ steps.commit-sha.outputs.COMMIT_SHA }} + SOURCE_SCOPE: ${{ inputs.source-scope }} + IS_MONOREPO: ${{ inputs.is-monorepo }} + run: | + prepare_manifest() { + local manifest_file="$1" + jq --raw-output \ + --arg npm_scope "$NPM_SCOPE" \ + --arg hash "$COMMIT_SHA" \ + --arg source_scope "$SOURCE_SCOPE" \ + ' + .name |= sub($source_scope; "\($npm_scope)/") | + .version |= (split("-")[0] + "-preview-\($hash)") + ' \ + "$manifest_file" > temp.json + mv temp.json "$manifest_file" + } + + if [[ "$IS_MONOREPO" == "true" ]]; then + workspace_list="$(yarn workspaces list --no-private --json \ + | jq --slurp --raw-output 'map([.location, .name]) | map(@tsv) | .[]')" + + # Add resolutions so renamed packages still resolve from local workspace + echo "Adding workspace resolutions to root manifest..." + resolutions='{}' + while IFS=$'\t' read -r location name; do + version="$(jq --raw-output '.version' "$location/package.json")" + resolutions="$(jq \ + --arg name "$name" \ + --arg version "$version" \ + --arg location "$location" \ + '.[$name + "@^" + $version] = "portal:./" + $location' \ + <<< "$resolutions")" + done <<< "$workspace_list" + jq --argjson resolutions "$resolutions" '.resolutions = ((.resolutions // {}) + $resolutions)' package.json > temp.json + mv temp.json package.json + + echo "Preparing manifests..." + while IFS=$'\t' read -r location name; do + echo "- $name" + prepare_manifest "$location/package.json" + done <<< "$workspace_list" + else + echo "Preparing manifest..." + prepare_manifest package.json + fi + + - name: Install dependencies + run: yarn install --no-immutable + + - name: Build (post-rename) + if: ${{ !inputs.rename-after-install-and-build }} + env: ${{ fromJSON(secrets.BUILD_ENV || '{}') }} + run: ${{ inputs.build-command }} + + - name: Upload build artifacts (monorepo) + if: ${{ inputs.is-monorepo }} + uses: actions/upload-artifact@v7 + with: + name: preview-build-artifacts + include-hidden-files: true + retention-days: ${{ inputs.artifact-retention-days }} + path: | + ./.yarn/patches/* + ./yarn.lock + ./package.json + ./packages/*/ + !./packages/*/node_modules/ + !./packages/*/tests/ + !./packages/**/*.test.* + + - name: Upload build artifacts (polyrepo) + if: ${{ !inputs.is-monorepo }} + uses: actions/upload-artifact@v7 + with: + name: preview-build-artifacts + include-hidden-files: true + retention-days: ${{ inputs.artifact-retention-days }} + path: | + . + !./node_modules/ + !./.git/ diff --git a/.github/workflows/publish-preview-oidc.yml b/.github/workflows/publish-preview-oidc.yml new file mode 100644 index 00000000..a2a2db88 --- /dev/null +++ b/.github/workflows/publish-preview-oidc.yml @@ -0,0 +1,206 @@ +name: Publish Preview Builds (OIDC) + +on: + workflow_call: + inputs: + npm-scope: + description: 'Target NPM scope for preview packages' + type: string + required: false + default: '@metamask-previews' + source-scope: + description: 'Source NPM scope to replace' + type: string + required: false + default: '@metamask/' + build-command: + description: 'Command to build the project' + type: string + required: false + default: 'yarn build' + is-monorepo: + description: 'Whether the consumer is a monorepo (workspace-aware prepare/publish/message)' + type: boolean + required: false + default: true + rename-after-install-and-build: + description: 'Governs where in the workflow that packages in the repo are renamed to use the preview build scope. If true, this step runs after the install and build steps; if false (default), it runs before. This option is mostly for Snaps so that artifacts (e.g. dist/bundle.js, snap.manifest.json) capture the original package name, not the preview build name.' + type: boolean + required: false + default: false + environment: + description: 'GitHub environment for the publish job (e.g., default-branch). Empty = no gate.' + type: string + required: false + default: '' + artifact-retention-days: + description: 'Days to retain build artifacts' + type: number + required: false + default: 4 + docs-url: + description: 'URL to preview builds documentation (included in PR comment)' + type: string + required: false + default: '' + dry-run: + description: 'Skip actual NPM publish (for testing)' + type: boolean + required: false + default: false + secrets: + BUILD_ENV: + description: 'JSON object of environment variables to pass to the build step (e.g. ''{"FOO":"bar","API_URL":"https://..."}''). Use this for build-time configuration and secrets needed by the build command.' + required: false + +jobs: + build: + name: Build + uses: ./.github/workflows/publish-preview-build.yml + with: + npm-scope: ${{ inputs.npm-scope }} + source-scope: ${{ inputs.source-scope }} + build-command: ${{ inputs.build-command }} + is-monorepo: ${{ inputs.is-monorepo }} + rename-after-install-and-build: ${{ inputs.rename-after-install-and-build }} + artifact-retention-days: ${{ inputs.artifact-retention-days }} + secrets: + BUILD_ENV: ${{ secrets.BUILD_ENV }} + + publish-preview: + name: Publish preview + needs: build + permissions: + contents: read + id-token: write + pull-requests: write + environment: ${{ inputs.environment }} + runs-on: ubuntu-latest + steps: + - name: Checkout and setup environment + uses: MetaMask/action-checkout-and-setup@v3 + with: + is-high-risk-environment: true + + - name: Restore build artifacts + uses: actions/download-artifact@v8 + with: + name: preview-build-artifacts + + # The artifact package.json files come from the PR branch. + # A malicious PR could inject lifecycle scripts (prepack/postpack) that + # execute during `yarn npm publish` with the NPM token in the environment + # (enableScripts: false does NOT prevent pack/publish lifecycle scripts). + # It could also override publishConfig.registry to exfiltrate the token. + # We strip dangerous lifecycle scripts (they already ran during build) + # and block unexpected registries outright. + - name: Sanitize and validate artifact manifests + env: + IS_MONOREPO: ${{ inputs.is-monorepo }} + run: | + bad=0 + if [[ "$IS_MONOREPO" == "true" ]]; then + mapfile -t manifests < <(find packages -name package.json -not -path '*/node_modules/*') + else + manifests=(package.json) + fi + if [[ ${#manifests[@]} -eq 0 ]]; then + echo "::error::No package.json files found to validate" + exit 1 + fi + # Strip registry overrides from .yarnrc.yml to prevent registry + # redirects that could exfiltrate the NPM token. npmPublishRegistry + # takes precedence over npmRegistryServer for yarn npm publish, and + # npmScopes can override per-scope. YARN_NPM_REGISTRY_SERVER env var + # only overrides npmRegistryServer, not the others. + if [[ -f .yarnrc.yml ]]; then + echo "Stripping registry config from .yarnrc.yml" + yq -i 'del(.npmRegistryServer) | del(.npmPublishRegistry) | del(.npmScopes)' .yarnrc.yml + fi + for f in "${manifests[@]}"; do + # Strip lifecycle scripts that run during pack/publish + if jq -e '.scripts // {} | keys[] | select(test("^(pre|post)?(pack|publish|prepare)$"))' "$f" > /dev/null 2>&1; then + echo "Stripping lifecycle scripts from $f" + jq 'if .scripts then .scripts |= with_entries(select(.key | test("^(pre|post)?(pack|publish|prepare)$") | not)) else . end' "$f" > "${f}.tmp" + mv "${f}.tmp" "$f" + fi + # Block unexpected registries + reg=$(jq -r '.publishConfig.registry // ""' "$f") + if [[ -n "$reg" && "$reg" != "https://registry.npmjs.org/" ]]; then + echo "::error::Unexpected registry in $f: $reg" + bad=1 + fi + done + exit "$bad" + + - name: Reconcile workspace state + run: yarn install --no-immutable + + - name: Publish preview builds (monorepo) + if: ${{ inputs.is-monorepo && !inputs.dry-run }} + run: yarn workspaces foreach --no-private --all exec yarn npm publish --tag preview + env: + YARN_NPM_REGISTRY_SERVER: 'https://registry.npmjs.org' + + - name: Publish preview builds (polyrepo) + if: ${{ !inputs.is-monorepo && !inputs.dry-run }} + run: yarn npm publish --tag preview + env: + YARN_NPM_REGISTRY_SERVER: 'https://registry.npmjs.org' + + - name: Dry run notice + if: ${{ inputs.dry-run }} + run: echo "Dry run — skipping publish" + + - name: Generate preview build message + env: + IS_MONOREPO: ${{ inputs.is-monorepo }} + DOCS_URL: ${{ inputs.docs-url }} + run: | + docs_link="" + if [[ -n "$DOCS_URL" ]]; then + docs_link="[Learn how to use preview builds in other projects](${DOCS_URL})." + fi + + if [[ "$IS_MONOREPO" == "true" ]]; then + packages="$( + yarn workspaces list --no-private --json \ + | jq --raw-output '.location' \ + | xargs -I{} cat '{}/package.json' \ + | jq --raw-output '"\(.name)@\(.version)"' + )" + echo -n "Preview builds have been published." > preview-build-message.txt + if [[ -n "$docs_link" ]]; then + echo -n " ${docs_link}" >> preview-build-message.txt + fi + cat <<-MSGEOF >> preview-build-message.txt + +
+ Expand for full list of packages and versions. + + \`\`\` + ${packages} + \`\`\` + +
+ MSGEOF + else + name="$(jq -r '.name' package.json)" + version="$(jq -r '.version' package.json)" + cat <<-MSGEOF > preview-build-message.txt + The following preview build has been published: + + \`\`\` + ${name}@${version} + \`\`\` + MSGEOF + if [[ -n "$docs_link" ]]; then + printf '\n%s\n' "$docs_link" >> preview-build-message.txt + fi + fi + + - name: Post build preview in comment + run: gh pr comment "${PR_NUMBER}" --body-file preview-build-message.txt + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_NUMBER: ${{ github.event.issue.number }} diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index caf9b03d..3a72c966 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -56,168 +56,22 @@ on: required: false jobs: - is-fork-pull-request: - name: Determine whether this PR is from a fork - runs-on: ubuntu-latest - outputs: - IS_FORK: ${{ steps.is-fork.outputs.IS_FORK }} - steps: - - uses: actions/checkout@v6 - - name: Determine whether this PR is from a fork - id: is-fork - run: echo "IS_FORK=$(gh pr view --json isCrossRepository --jq '.isCrossRepository' "${PR_NUMBER}" )" >> "$GITHUB_OUTPUT" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_NUMBER: ${{ github.event.issue.number }} - - react-to-comment: - name: React to comment - needs: is-fork-pull-request - if: ${{ needs.is-fork-pull-request.outputs.IS_FORK == 'false' }} - runs-on: ubuntu-latest - steps: - - name: Add reaction to trigger comment - run: | - gh api \ - --method POST \ - "repos/${GITHUB_REPOSITORY}/issues/comments/${COMMENT_ID}/reactions" \ - -f content='+1' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COMMENT_ID: ${{ github.event.comment.id }} - - build-preview: - name: Build preview - needs: react-to-comment - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - - name: Check out pull request - run: gh pr checkout "${PR_NUMBER}" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_NUMBER: ${{ github.event.issue.number }} - - - name: Checkout and setup environment - uses: MetaMask/action-checkout-and-setup@v3 - with: - is-high-risk-environment: true - - - name: Get commit SHA - id: commit-sha - run: echo "COMMIT_SHA=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT" - - - name: Install dependencies (pre-build) - if: ${{ inputs.rename-after-install-and-build }} - run: yarn install --no-immutable - - - name: Mask build environment values - env: - BUILD_ENV: ${{ secrets.BUILD_ENV }} - run: | - if [[ -n "$BUILD_ENV" ]]; then - while IFS= read -r line; do - if [[ -n "$line" ]]; then - echo "::add-mask::$line" - fi - done < <(jq --raw-output '.[] | tostring' <<< "$BUILD_ENV") - fi - - - name: Build (pre-rename) - if: ${{ inputs.rename-after-install-and-build }} - env: ${{ fromJSON(secrets.BUILD_ENV || '{}') }} - run: ${{ inputs.build-command }} - - - name: Prepare preview manifests - env: - NPM_SCOPE: ${{ inputs.npm-scope }} - COMMIT_SHA: ${{ steps.commit-sha.outputs.COMMIT_SHA }} - SOURCE_SCOPE: ${{ inputs.source-scope }} - IS_MONOREPO: ${{ inputs.is-monorepo }} - run: | - prepare_manifest() { - local manifest_file="$1" - jq --raw-output \ - --arg npm_scope "$NPM_SCOPE" \ - --arg hash "$COMMIT_SHA" \ - --arg source_scope "$SOURCE_SCOPE" \ - ' - .name |= sub($source_scope; "\($npm_scope)/") | - .version |= (split("-")[0] + "-preview-\($hash)") - ' \ - "$manifest_file" > temp.json - mv temp.json "$manifest_file" - } - - if [[ "$IS_MONOREPO" == "true" ]]; then - workspace_list="$(yarn workspaces list --no-private --json \ - | jq --slurp --raw-output 'map([.location, .name]) | map(@tsv) | .[]')" - - # Add resolutions so renamed packages still resolve from local workspace - echo "Adding workspace resolutions to root manifest..." - resolutions='{}' - while IFS=$'\t' read -r location name; do - version="$(jq --raw-output '.version' "$location/package.json")" - resolutions="$(jq \ - --arg name "$name" \ - --arg version "$version" \ - --arg location "$location" \ - '.[$name + "@^" + $version] = "portal:./" + $location' \ - <<< "$resolutions")" - done <<< "$workspace_list" - jq --argjson resolutions "$resolutions" '.resolutions = ((.resolutions // {}) + $resolutions)' package.json > temp.json - mv temp.json package.json - - echo "Preparing manifests..." - while IFS=$'\t' read -r location name; do - echo "- $name" - prepare_manifest "$location/package.json" - done <<< "$workspace_list" - else - echo "Preparing manifest..." - prepare_manifest package.json - fi - - - name: Install dependencies - run: yarn install --no-immutable - - - name: Build (post-rename) - if: ${{ !inputs.rename-after-install-and-build }} - env: ${{ fromJSON(secrets.BUILD_ENV || '{}') }} - run: ${{ inputs.build-command }} - - - name: Upload build artifacts (monorepo) - if: ${{ inputs.is-monorepo }} - uses: actions/upload-artifact@v7 - with: - name: preview-build-artifacts - include-hidden-files: true - retention-days: ${{ inputs.artifact-retention-days }} - path: | - ./.yarn/patches/* - ./yarn.lock - ./package.json - ./packages/*/ - !./packages/*/node_modules/ - !./packages/*/tests/ - !./packages/**/*.test.* - - - name: Upload build artifacts (polyrepo) - if: ${{ !inputs.is-monorepo }} - uses: actions/upload-artifact@v7 - with: - name: preview-build-artifacts - include-hidden-files: true - retention-days: ${{ inputs.artifact-retention-days }} - path: | - . - !./node_modules/ - !./.git/ + build: + name: Build + uses: ./.github/workflows/publish-preview-build.yml + with: + npm-scope: ${{ inputs.npm-scope }} + source-scope: ${{ inputs.source-scope }} + build-command: ${{ inputs.build-command }} + is-monorepo: ${{ inputs.is-monorepo }} + rename-after-install-and-build: ${{ inputs.rename-after-install-and-build }} + artifact-retention-days: ${{ inputs.artifact-retention-days }} + secrets: + BUILD_ENV: ${{ secrets.BUILD_ENV }} publish-preview: name: Publish preview - needs: build-preview + needs: build permissions: contents: read pull-requests: write From 262cd663283c12d5b4ba5eb7e160ab62c1bf1dd2 Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Wed, 11 Nov 2026 16:11:25 +0100 Subject: [PATCH 2/3] Skip publish-preview for fork pull requests A reusable workflow call reports success when its inner jobs are skipped. After the build moved into `publish-preview-build.yml`, fork pull requests skipped `build-preview`, but the `build` call still succeeded. `publish-preview` then ran, found no `preview-build-artifacts`, and failed. The build workflow now exposes an `is-fork` output, and `publish-preview` only runs when it is `false`, in both `publish-preview.yml` and `publish-preview-oidc.yml`. --- .github/workflows/publish-preview-build.yml | 4 ++++ .github/workflows/publish-preview-oidc.yml | 1 + .github/workflows/publish-preview.yml | 1 + 3 files changed, 6 insertions(+) diff --git a/.github/workflows/publish-preview-build.yml b/.github/workflows/publish-preview-build.yml index 9d139859..5d1e8cb3 100644 --- a/.github/workflows/publish-preview-build.yml +++ b/.github/workflows/publish-preview-build.yml @@ -27,6 +27,10 @@ on: description: 'Days to retain build artifacts' type: number required: true + outputs: + is-fork: + description: 'Whether the pull request is from a fork. The build is skipped when it is.' + value: ${{ jobs.is-fork-pull-request.outputs.IS_FORK }} secrets: BUILD_ENV: description: 'JSON object of environment variables to pass to the build step.' diff --git a/.github/workflows/publish-preview-oidc.yml b/.github/workflows/publish-preview-oidc.yml index a2a2db88..f60d666d 100644 --- a/.github/workflows/publish-preview-oidc.yml +++ b/.github/workflows/publish-preview-oidc.yml @@ -70,6 +70,7 @@ jobs: publish-preview: name: Publish preview needs: build + if: ${{ needs.build.outputs.is-fork == 'false' }} permissions: contents: read id-token: write diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index 3a72c966..df165bc5 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -72,6 +72,7 @@ jobs: publish-preview: name: Publish preview needs: build + if: ${{ needs.build.outputs.is-fork == 'false' }} permissions: contents: read pull-requests: write From 67c76e6f150f421c8db79c7d0ccbc239e675eb4b Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Fri, 13 Nov 2026 10:28:27 +0100 Subject: [PATCH 3/3] Rename workflow to `prepare-preview` --- .../{publish-preview-build.yml => prepare-preview.yml} | 2 +- .github/workflows/publish-preview-oidc.yml | 2 +- .github/workflows/publish-preview.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{publish-preview-build.yml => prepare-preview.yml} (99%) diff --git a/.github/workflows/publish-preview-build.yml b/.github/workflows/prepare-preview.yml similarity index 99% rename from .github/workflows/publish-preview-build.yml rename to .github/workflows/prepare-preview.yml index 5d1e8cb3..9031daa4 100644 --- a/.github/workflows/publish-preview-build.yml +++ b/.github/workflows/prepare-preview.yml @@ -1,4 +1,4 @@ -name: Publish Preview Builds (Build) +name: Prepare Preview Builds on: workflow_call: diff --git a/.github/workflows/publish-preview-oidc.yml b/.github/workflows/publish-preview-oidc.yml index f60d666d..bb831d7c 100644 --- a/.github/workflows/publish-preview-oidc.yml +++ b/.github/workflows/publish-preview-oidc.yml @@ -56,7 +56,7 @@ on: jobs: build: name: Build - uses: ./.github/workflows/publish-preview-build.yml + uses: ./.github/workflows/prepare-preview.yml with: npm-scope: ${{ inputs.npm-scope }} source-scope: ${{ inputs.source-scope }} diff --git a/.github/workflows/publish-preview.yml b/.github/workflows/publish-preview.yml index df165bc5..9211889c 100644 --- a/.github/workflows/publish-preview.yml +++ b/.github/workflows/publish-preview.yml @@ -58,7 +58,7 @@ on: jobs: build: name: Build - uses: ./.github/workflows/publish-preview-build.yml + uses: ./.github/workflows/prepare-preview.yml with: npm-scope: ${{ inputs.npm-scope }} source-scope: ${{ inputs.source-scope }}