Skip to content
Merged
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
22 changes: 22 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ jobs:
run: |
pnpm version ${{ steps.version.outputs.version }} --no-git-tag-version --allow-same-version

- name: Create distribution archive
run: |
# Create a compressed archive of the dist directory
tar -czf dist-${{ steps.version.outputs.version }}.tar.gz dist/

# Create a zip archive as well for Windows users
zip -r dist-${{ steps.version.outputs.version }}.zip dist/

- name: Publish to NPM
run: |
pnpm publish --tag ${{ steps.version.outputs.npm_tag }} --no-git-checks
Expand All @@ -110,6 +118,9 @@ jobs:
tag: v${{ steps.version.outputs.version }}
name: Release v${{ steps.version.outputs.version }}
commit: ${{ github.sha }}
artifacts: |
dist-${{ steps.version.outputs.version }}.tar.gz
dist-${{ steps.version.outputs.version }}.zip
body: |
## Changes

Expand All @@ -120,6 +131,10 @@ jobs:
npm install sqm@latest
```

Download the distribution archives:
- dist-${{ steps.version.outputs.version }}.tar.gz `compressed tar.gz archive`
- dist-${{ steps.version.outputs.version }}.zip `zip archive`

For full changelog, see the commit history.
draft: false
prerelease: false
Expand All @@ -132,6 +147,9 @@ jobs:
tag: v${{ steps.version.outputs.version }}
name: ${{ steps.version.outputs.branch }} v${{ steps.version.outputs.version }}
commit: ${{ github.sha }}
artifacts: |
dist-${{ steps.version.outputs.version }}.tar.gz
dist-${{ steps.version.outputs.version }}.zip
body: |
## ${{ steps.version.outputs.branch }} Release

Expand All @@ -142,6 +160,10 @@ jobs:
npm install sqm@${{ steps.version.outputs.npm_tag }}
```

Download the distribution archives:
- dist-${{ steps.version.outputs.version }}.tar.gz `compressed tar.gz archive`
- dist-${{ steps.version.outputs.version }}.zip `zip archive`

**⚠️ Warning**: This is a pre-release version and may contain bugs or incomplete features.
draft: false
prerelease: true
Expand Down