File tree Expand file tree Collapse file tree 3 files changed +41
-14
lines changed Expand file tree Collapse file tree 3 files changed +41
-14
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish to NPM
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ dry_run :
7
+ description : ' Dry Run'
8
+ type : boolean
9
+ default : true
10
+
11
+ workflow_call :
12
+ secrets :
13
+ PUBLISH_NPM :
14
+ required : true
15
+
16
+ permissions :
17
+ contents : read
18
+
19
+ jobs :
20
+ publish :
21
+ runs-on : ubuntu-latest
22
+ steps :
23
+ - uses : actions/checkout@v4
24
+ - name : Setup
25
+ uses : ./.github/actions/setup
26
+
27
+ - run : |
28
+ pnpm i
29
+ pnpm build
30
+
31
+ # Release Please has already incremented versions and published tags, so we just
32
+ # need to publish all unpublished versions to NPM here
33
+ # See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package
34
+ - name : Publish to NPM
35
+ env :
36
+ NODE_AUTH_TOKEN : ${{secrets.PUBLISH_NPM}}
37
+ run : pnpm publish packages/perf-bench ${{ (inputs.dry_run && '--dry-run') || '' }}
Original file line number Diff line number Diff line change 27
27
# cspell:ignore noreply
28
28
29
29
publish :
30
- runs-on : ubuntu-latest
31
30
needs :
32
31
- release-please
32
+ uses : ./.github/workflows/publish.yml
33
+ secrets :
34
+ PUBLISH_NPM : ${{ secrets.PUBLISH_NPM }}
33
35
if : ${{ needs.release-please.outputs.release_created }}
34
- steps :
35
- # The logic below handles the npm publication:
36
- - uses : actions/checkout@v4
37
- - name : Setup
38
- uses : ./.github/actions/setup
39
-
40
- - run : |
41
- pnpm i
42
- pnpm build
43
-
44
- - run : pnpm publish
45
- env :
46
- NODE_AUTH_TOKEN : ${{secrets.PUBLISH_NPM}}
Original file line number Diff line number Diff line change 1
1
{
2
+ "." : " 1.0.0" ,
2
3
"packages/perf-bench" : " 1.0.0"
3
4
}
You can’t perform that action at this time.
0 commit comments