File tree Expand file tree Collapse file tree 2 files changed +4
-30
lines changed Expand file tree Collapse file tree 2 files changed +4
-30
lines changed Original file line number Diff line number Diff line change 1
1
name : Format
2
2
3
3
on :
4
+ workflow_dispatch :
4
5
push :
5
6
branches :
6
7
- main
7
8
8
9
jobs :
9
10
format :
10
- runs-on : ubuntu-latest
11
- permissions :
12
- contents : write
13
- steps :
14
- - uses : actions/checkout@v4
15
- with :
16
- ref : ${{ github.head_ref }}
17
- token : ${{ secrets.GITHUB_TOKEN }}
18
- - uses : pnpm/action-setup@v4
19
- - uses : actions/setup-node@v4
20
- with :
21
- node-version : 20
22
- cache : " pnpm"
23
- - name : Install dependencies
24
- run : pnpm install
25
- - name : Format code
26
- run : pnpm run format
27
- - name : Commit changes
28
- uses : stefanzweifel/git-auto-commit-action@v5
29
- with :
30
- commit_message : " [ci] format"
31
- branch : ${{ github.head_ref }}
32
- env :
33
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
11
+ if : github.repository_owner == 'bombshell-dev'
12
+ uses : bombshell-dev/automation/.github/workflows/format.yml@main
13
+ secrets : inherit
Original file line number Diff line number Diff line change 25
25
with :
26
26
node-version : 20
27
27
cache : " pnpm"
28
- # Run prepublish to ensure everything is built properly
29
- # TODO: is this manual build step actually needed?
30
28
- run : pnpm run ci:install
31
- # `prepack` hook _should_ run but doesn't seem to.
32
29
- run : pnpm run ci:prepublish
33
30
- name : Create Release Pull Request or Publish to npm
34
31
id : changesets
47
44
pnpm run deps:check
48
45
env :
49
46
NODE_ENV : production
50
- - name : Publish to jsr.io
51
- if : steps.changesets.outputs.published == 'true'
52
- run : pnpx @qingshaner/jsr-release publish --changesetReleases='${{ steps.changesets.outputs.publishedPackages }}'
You can’t perform that action at this time.
0 commit comments