Skip to content

Commit

Permalink
Upload / Download with a unique artifact name based on the Git SHA.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Dec 31, 2024
1 parent 599c889 commit 3973934
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types: ["created"]
workflow_dispatch:

env:
G_CLP_FFI_JS_DIST_ARTIFACT_NAME: "clp-ffi-js-dist-${{github.sha}}"

permissions: {}

jobs:
Expand All @@ -23,7 +26,7 @@ jobs:
- name: "Upload build artifacts"
uses: "actions/upload-artifact@v4"
with:
name: "dist"
name: "${{env.G_CLP_FFI_JS_DIST_ARTIFACT_NAME}}"
path: "dist/"
if-no-files-found: "error"
retention-days: 1
Expand All @@ -35,7 +38,7 @@ jobs:
- uses: "actions/checkout@v4"
- uses: "actions/download-artifact@v4"
with:
name: "dist"
name: "${{env.G_CLP_FFI_JS_DIST_ARTIFACT_NAME}}"
path: "dist/"

- uses: "actions/setup-node@v4"
Expand Down

0 comments on commit 3973934

Please sign in to comment.