Skip to content

feature: add jitterX and jitterY transforms #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
May 26, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
check existing pr prereleases and increment version
  • Loading branch information
gka committed May 26, 2025
commit a65bb49f9618d493a5704ca9ce3d2be7c0b13d88
24 changes: 24 additions & 0 deletions .github/workflows/preview-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,23 +59,47 @@ jobs:
- name: Generate preview version
run: |
pr_number=${{ github.event.pull_request.number }}

# Check if a prerelease version for this PR already exists on npm
existing_versions=$(npm view svelteplot versions --json 2>/dev/null | grep -o "\".*pr-${pr_number}[.][0-9]*\"" || echo "")

if [ -n "$existing_versions" ]; then
# Get the latest prerelease version for this PR
latest_version=$(echo $existing_versions | sed 's/,/\n/g' | sort -V | tail -n 1 | sed 's/"//g')
echo "Found existing prerelease version: $latest_version"

# Set the package version to the existing version so npm version will properly increment
npm version $latest_version --no-git-tag-version
fi

# Now increment the prerelease version (or create it if it doesn't exist)
npm version prerelease --preid=pr-${pr_number} --no-git-tag-version

echo "Generated version: $(node -p "require('./package.json').version")"

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH }}
run: npm publish --tag pr-${{ github.event.pull_request.number }} --access public

# Save version for use in PR comment
- name: Save version
run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV

- name: Comment on PR
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
📦 Preview package for this PR is published!

Version: `${{ env.PACKAGE_VERSION }}`

Install it with:
```bash
npm install svelteplot@pr-${{ github.event.pull_request.number }}
# or install the specific version
npm install svelteplot@${{ env.PACKAGE_VERSION }}
```
reactions: '+1, rocket'
edit-mode: replace
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy