Skip to content

Commit 72c7ed6

Browse files
authoredDec 29, 2023
chore: Modularise rollup config (#5238)
* Update github workflows * Test modular rollup config * Modularise rollup builds * Use svelte vite preprocessor * Fix test:types command * Fix pr.yml * Remove references/aliases * Add nx-set-shas * Test examples on PR * Fix vue example builds * Fix root tsconfig * Fix nx.json dependsOn * Better build/dev commands * Update test:pr * Fix import.meta.url warning
1 parent 7f68e42 commit 72c7ed6

File tree

105 files changed

+1500
-1576
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1500
-1576
lines changed
 

‎.github/workflows/ci.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
name: ci
2+
3+
on:
4+
push:
5+
branches: ['main', 'alpha', 'beta', 'rc']
6+
27
concurrency:
3-
group: publish-${{ github.github.base_ref }}
8+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
49
cancel-in-progress: true
5-
on: [push]
10+
611
jobs:
712
test-and-publish:
8-
if: github.event_name != 'pull_request'
9-
name: 'Test & Publish'
13+
name: Test & Publish
1014
runs-on: ubuntu-latest
1115
steps:
12-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1317
with:
1418
fetch-depth: '0'
1519
- name: Setup pnpm
@@ -21,8 +25,9 @@ jobs:
2125
with:
2226
node-version-file: .nvmrc
2327
cache: pnpm
28+
- name: Install dependencies
29+
run: pnpm install --frozen-lockfile
2430
- run: |
25-
pnpm install --frozen-lockfile
2631
git config --global user.name 'Tanner Linsley'
2732
git config --global user.email 'tannerlinsley@users.noreply.github.com'
2833
pnpm run cipublish

‎.github/workflows/pr.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
11
name: pr
2-
on: [pull_request]
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- 'docs/**'
7+
- 'media/**'
8+
- '**/*.md'
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
12+
cancel-in-progress: true
13+
314
jobs:
415
test:
516
name: 'Test'
617
runs-on: ubuntu-latest
718
steps:
819
- name: Checkout
9-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
1023
- name: Setup pnpm
1124
uses: pnpm/action-setup@v2
1225
with:
@@ -18,5 +31,9 @@ jobs:
1831
cache: pnpm
1932
- name: Install Dependencies
2033
run: pnpm install --frozen-lockfile
34+
- name: Get appropriate base and head commits for `nx affected` commands
35+
uses: nrwl/nx-set-shas@v3
36+
with:
37+
main-branch-name: 'main'
2138
- name: Run Checks
22-
run: pnpm run pr
39+
run: pnpm run test:pr

0 commit comments

Comments
 (0)
Please sign in to comment.