File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' supabase-payload ' : patch
3+ ' @sect/payload-supabase-rls ' : patch
4+ ---
5+
6+ .
7+
8+ - ci(github-actions): add automated release workflow
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ concurrency : ${{ github.workflow }}-${{ github.ref }}
9+
10+ permissions :
11+ contents : write
12+ pull-requests : write
13+ packages : write
14+ id-token : write
15+
16+ jobs :
17+ release :
18+ name : Release
19+ runs-on : ubuntu-latest
20+ # To use Turborepo Remote Caching, set the following environment variables for the job.
21+ env :
22+ TURBO_TOKEN : ${{ secrets.TURBO_TOKEN }}
23+ TURBO_TEAM : ${{ vars.TURBO_TEAM }}
24+
25+ steps :
26+ - name : Checkout Repo
27+ uses : actions/checkout@v4
28+
29+ - name : Setup pnpm
30+ uses : pnpm/action-setup@v4
31+ with :
32+ version : 10.26.2
33+
34+ - name : Setup Node.js 24.x
35+ uses : actions/setup-node@v4
36+ with :
37+ node-version : 24.x
38+ registry-url : ' https://registry.npmjs.org'
39+
40+ - name : Install Dependencies
41+ run : pnpm i --frozen-lockfile
42+
43+ - name : Build Packages
44+ run : pnpm build
45+
46+ - name : Run Tests
47+ run : pnpm test
48+
49+ - name : Run Test Coverage
50+ run : pnpm coverage
51+
52+ - name : Upload coverage to Codecov
53+ uses : codecov/codecov-action@v5
54+ env :
55+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
56+ with :
57+ files : ./packages/payload-supabase-rls/coverage/coverage-final.json
58+ flags : payload-supabase-rls
59+
60+ - name : Create Release Pull Request or Publish to npm
61+ id : changesets
62+ uses : changesets/action@v1
63+ with :
64+ # This expects you to have a script called release which does a build for your packages and calls changeset publish
65+ publish : pnpm release
66+ commit : ' chore: release package(s)'
67+ title : ' chore: release package(s)'
68+ env :
69+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments