Skip to content

Commit

Permalink
ci: use run_id as build artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Oct 29, 2024
1 parent 7b7c0a6 commit 72c55ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish-from-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 72c55ff

Please sign in to comment.