diff --git a/.github/workflows/npm-publish-from-pr.yml b/.github/workflows/npm-publish-from-pr.yml index 9911a65..38db5c6 100644 --- a/.github/workflows/npm-publish-from-pr.yml +++ b/.github/workflows/npm-publish-from-pr.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: source: - description: 'source reference, example: `google/zx/main/0cba54884f3084af1674118ef6299302d82daaf9`' + description: 'source reference: `google/zx/main/0cba...f9`' repoName: description: 'source gh repo, like `google/zx`' repoBranch: @@ -37,7 +37,7 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: build-pr-${{ github.event.inputs.source }} + name: build-pr-${{ github.run_id }} path: | target package.json @@ -60,7 +60,7 @@ jobs: node-version: 22 - uses: actions/download-artifact@v4 with: - name: build-pr-${{ github.event.inputs.source }} + name: build-pr-${{ github.run_id }} - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc env: