Skip to content
Draft
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
10 changes: 8 additions & 2 deletions .github/workflows/npm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,15 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
scope: '@ultimaker'

- name: Publish to GitHub Packages
- name: Publish to GitHub Packages (with version)
run: npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to GitHub Packages (with alias)
if: ${{ github.ref_name == 'main' }}
run: |
npm publish
npm publish --tag latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down