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
19 changes: 19 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,27 @@ jobs:
- uses: actions/checkout@v6
- name: Install dependencies
uses: ./.github/actions/setup
with:
node-version: 22.12.0
- name: Build package
run: pnpm build
- name: Create snapshot
id: snapshot
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpx pkg-pr-new@0.0.24 publish --pnpm --comment=off
- name: Fallback snapshot artifacts
if: steps.snapshot.outcome != 'success'
shell: bash
run: |
set -euo pipefail
mkdir -p artifacts
cd packages/app
npm pack --silent --pack-destination ../../artifacts
- name: Upload snapshot artifacts
if: steps.snapshot.outcome != 'success'
uses: actions/upload-artifact@v4
with:
name: context-doc-snapshot
path: artifacts/*.tgz