File tree Expand file tree Collapse file tree 3 files changed +48
-4
lines changed
Expand file tree Collapse file tree 3 files changed +48
-4
lines changed Original file line number Diff line number Diff line change 11
22on :
3- release :
4- types : [published]
53 pull_request :
64 branches : ' **'
75 paths-ignore :
3937 uses : codecov/codecov-action@v5
4038 with :
4139 token : ${{ secrets.CODECOV_TOKEN }}
42-
40+
Original file line number Diff line number Diff line change 1+ on :
2+ release :
3+ types : [published]
4+
5+ name : Release
6+ jobs :
7+ release :
8+ name : Build and Publish
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ # check if tagged version matches federation-sdk version
14+ - name : Check version
15+ run : |
16+ TAG_VERSION="${{ github.event.release.tag_name }}"
17+ SDK_VERSION=$(jq -r '.version' packages/federation-sdk/package.json)
18+ if [ "$TAG_VERSION" != "$SDK_VERSION" ]; then
19+ echo "Tag version ($TAG_VERSION) does not match federation-sdk version ($SDK_VERSION)"
20+ exit 1
21+ fi
22+
23+ - name : Cache turbo build setup
24+ uses : actions/cache@v4
25+ with :
26+ path : .turbo
27+ key : ${{ runner.os }}-turbo-${{ github.sha }}
28+ restore-keys : |
29+ ${{ runner.os }}-turbo-
30+
31+ - uses : oven-sh/setup-bun@v2
32+
33+ - run : bun install
34+
35+ - run : bun lint:ci
36+
37+ - run : bun test
38+
39+ - run : bun bundle:sdk
40+
41+ - name : Publish to NPM
42+ env :
43+ NPM_CONFIG_TOKEN : ${{ secrets.NPM_CONFIG_TOKEN }}
44+ run : |
45+ cd ./federation-bundle
46+ bun publish --access public
Original file line number Diff line number Diff line change 5050 "lint:ci" : " bunx @biomejs/biome ci --diagnostic-level=error" ,
5151 "lint:fix" : " bunx @biomejs/biome lint --fix" ,
5252 "tsc" : " tsc --noEmit" ,
53- "bundle:sdk" : " bun run bundle.ts"
53+ "bundle:sdk" : " bun run build && bun run bundle.ts"
5454 }
5555}
You can’t perform that action at this time.
0 commit comments