File tree 3 files changed +53
-11
lines changed
3 files changed +53
-11
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - published
7
+
8
+ jobs :
9
+ publish :
10
+ runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : read
13
+ id-token : write
14
+
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@v4
18
+ - name : Set up pnpm
19
+ uses : pnpm/action-setup@v2
20
+ with :
21
+ version : 8
22
+ - name : Setup Node.js
23
+ uses : actions/setup-node@v4
24
+ with :
25
+ node-version : 20
26
+ registry-url : " https://registry.npmjs.org"
27
+ cache : pnpm
28
+ - name : Install dependencies
29
+ run : pnpm install --ignore-scripts
30
+ - name : Build
31
+ run : pnpm run build
32
+ - name : Publish to NPM (with provenance)
33
+ run : pnpm publish --no-git-checks --access public --tag ${{ github.event.release.prerelease && 'next' || 'latest' }}
34
+ env :
35
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
36
+ NPM_CONFIG_PROVENANCE : " true"
Original file line number Diff line number Diff line change 1
1
name : Size Limit
2
+
2
3
on :
3
4
pull_request :
4
5
branches :
@@ -15,16 +16,16 @@ jobs:
15
16
16
17
steps :
17
18
- uses : actions/checkout@v4
19
+ - name : Fetch Git refs
20
+ run : git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
18
21
- uses : pnpm/action-setup@v2
19
22
with :
20
- version : latest
23
+ version : 8
21
24
- uses : actions/setup-node@v4
22
25
with :
23
26
node-version : 20
24
27
cache : pnpm
25
- - name : Install dependencies
26
- run : pnpm install --ignore-scripts
27
- - name : Check size
28
+ - name : Check package size
28
29
uses : andresz1/size-limit-action@v1
29
30
with :
30
31
github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
- name : Lint
1
+ name : Test
2
+
2
3
on :
3
4
push :
4
5
branches :
7
8
branches :
8
9
- main
9
10
11
+ env :
12
+ FORCE_COLOR : 2
13
+
10
14
jobs :
11
- lint :
15
+ test :
12
16
runs-on : ubuntu-latest
13
- env :
14
- FORCE_COLOR : 2
15
17
16
18
steps :
17
19
- uses : actions/checkout@v4
18
20
- uses : pnpm/action-setup@v2
19
21
with :
20
- version : latest
22
+ version : 8
21
23
- uses : actions/setup-node@v4
22
24
with :
23
25
node-version : 20
24
26
cache : pnpm
25
27
- name : Install dependencies
26
28
run : pnpm install --ignore-scripts
27
- - name : Lint
28
- run : pnpm lint
29
+ # pre-commit dioes this for us
30
+ # - name: Lint
31
+ # run: pnpm run lint
32
+ - name : Build
33
+ run : pnpm run build
You can’t perform that action at this time.
0 commit comments