Skip to content

Commit 03bab4c

Browse files
committed
Allow downloading an extra artifact before packaging
NP-1311
1 parent 038066f commit 03bab4c

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/npm-package.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ on:
1717
default: ""
1818
type: string
1919

20+
extra_artifact:
21+
required: false
22+
default: ""
23+
type: string
24+
2025
jobs:
2126
publish-npm:
2227
runs-on: ubuntu-latest
@@ -37,6 +42,12 @@ jobs:
3742
- name: Install TypeScript 5.6.2
3843
run: npm install -g typescript@5.6.2
3944

45+
- name: Download extra artifact
46+
if: ${{ extra_artifact != '' }}
47+
uses: actions/download-artifact@v8
48+
with:
49+
name: ${{ extra_artifact }}
50+
4051
- name: Gather/build the packages
4152
run: conan install --requires "${{ inputs.package_version_full }}" -pr:h cura_wasm.jinja -g npm --build=missing --update ${{ inputs.conan_extra_args }} -of .
4253

@@ -46,7 +57,6 @@ jobs:
4657
registry-url: 'https://npm.pkg.github.com'
4758
scope: '@ultimaker'
4859

49-
5060
- name: Publish to GitHub Packages
5161
run: |
5262
npm publish

0 commit comments

Comments
 (0)