Skip to content

Commit

Permalink
ci(publish-to-npm): Download and extract build as single artifact at …
Browse files Browse the repository at this point in the history
…the correct path (fixes #48). (#49)
  • Loading branch information
junhaoliao authored Dec 31, 2024
1 parent 225414a commit b3231bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 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,6 +26,7 @@ jobs:
- name: "Upload build artifacts"
uses: "actions/upload-artifact@v4"
with:
name: "${{env.G_CLP_FFI_JS_DIST_ARTIFACT_NAME}}"
path: "dist/"
if-no-files-found: "error"
retention-days: 1
Expand All @@ -33,6 +37,9 @@ jobs:
steps:
- uses: "actions/checkout@v4"
- uses: "actions/download-artifact@v4"
with:
name: "${{env.G_CLP_FFI_JS_DIST_ARTIFACT_NAME}}"
path: "dist/"

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

0 comments on commit b3231bf

Please sign in to comment.