We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents abee39a + e3ce2e3 commit a6ff21dCopy full SHA for a6ff21d
1 file changed
.github/workflows/snapshot.yml
@@ -17,8 +17,27 @@ jobs:
17
- uses: actions/checkout@v6
18
- name: Install dependencies
19
uses: ./.github/actions/setup
20
+ with:
21
+ node-version: 22.12.0
22
- name: Build package
23
run: pnpm build
24
- name: Create snapshot
25
id: snapshot
26
+ continue-on-error: true
27
+ env:
28
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29
run: pnpx pkg-pr-new@0.0.24 publish --pnpm --comment=off
30
+ - name: Fallback snapshot artifacts
31
+ if: steps.snapshot.outcome != 'success'
32
+ shell: bash
33
+ run: |
34
+ set -euo pipefail
35
+ mkdir -p artifacts
36
+ cd packages/app
37
+ npm pack --silent --pack-destination ../../artifacts
38
+ - name: Upload snapshot artifacts
39
40
+ uses: actions/upload-artifact@v4
41
42
+ name: context-doc-snapshot
43
+ path: artifacts/*.tgz
0 commit comments