Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.
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
19 changes: 16 additions & 3 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,25 @@ jobs:
- name: Build packages
run: pnpm run build:packages

- name: Publish to npm (ignore GitHub)
- name: Add snapshot changeset (ensure at least has a changeset)
run: |
cat << EOF > ".changeset/snap-release-changeset.md"
---
"@rgbpp-sdk/btc": patch
---
Add temp changeset for snapshot releases
EOF

- name: Version packages to "0.0.0-snap-{timestamp}"
run: npx changeset version --snapshot snap
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: npx changeset version --snapshot snap
publish: npx changeset publish --snapshot --tag snap
publish: npx changeset publish --no-git-tag --snapshot --tag snap
createGithubReleases: false
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down