Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/npm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ on:
default: ""
type: string

extra_artifact:
required: false
default: ""
type: string

extra_artifact_destination:
required: false
default: "."
type: string

jobs:
publish-npm:
runs-on: ubuntu-latest
Expand All @@ -37,6 +47,13 @@ jobs:
- name: Install TypeScript 5.6.2
run: npm install -g typescript@5.6.2

- name: Download extra artifact
if: ${{ inputs.extra_artifact != '' }}
uses: actions/download-artifact@v8
with:
name: ${{ inputs.extra_artifact }}
path: ${{ inputs.extra_artifact_destination }}

- name: Gather/build the packages
run: conan install --requires "${{ inputs.package_version_full }}" -pr:h cura_wasm.jinja -g npm --build=missing --update ${{ inputs.conan_extra_args }} -of .

Expand All @@ -46,7 +63,6 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
scope: '@ultimaker'


- name: Publish to GitHub Packages
run: |
npm publish
Expand Down