-
-
Notifications
You must be signed in to change notification settings - Fork 346
85 lines (72 loc) · 2.22 KB
/
main.yml
File metadata and controls
85 lines (72 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.24.0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24.x
cache: pnpm
registry-url: https://registry.npmjs.org
- name: Upgrade npm for OIDC trusted publishing
run: npm install -g npm@latest
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run CI checks
run: pnpm run ci
env:
PADDLE_ENVIRONMENT: sandbox
PADDLE_TOKEN: test_5
PADDLE_STANDARD_PRICE_ID: pri_01
PADDLE_PRO_PRICE_ID: pri_01
- name: Check for major changesets
id: major
run: |
if grep -r "^major" .changeset/*.md 2>/dev/null; then
echo "found=true" >> $GITHUB_OUTPUT
else
echo "found=false" >> $GITHUB_OUTPUT
fi
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
npm_config_force: 'true'
PADDLE_ENVIRONMENT: sandbox
PADDLE_TOKEN: test_5
PADDLE_STANDARD_PRICE_ID: pri_01
PADDLE_PRO_PRICE_ID: pri_01
- name: Auto-merge non-major version PR
if: steps.changesets.outputs.hasChangesets == 'true' && steps.changesets.outputs.pullRequestNumber != '' && steps.major.outputs.found == 'false'
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
run: |
gh pr merge --squash --auto "${{ steps.changesets.outputs.pullRequestNumber }}"
- name: Upload Playwright report
if: failure()
uses: actions/upload-artifact@v6
with:
name: playwright-report-release
path: packages/react-virtuoso/playwright-report/
retention-days: 7