Skip to content

Commit ac7ca01

Browse files
authored
Update CI (#313)
1 parent 4eb5ee8 commit ac7ca01

File tree

2 files changed

+4
-30
lines changed

2 files changed

+4
-30
lines changed

.github/workflows/format.yml

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,13 @@
11
name: Format
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- main
78

89
jobs:
910
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

.github/workflows/release.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ jobs:
2525
with:
2626
node-version: 20
2727
cache: "pnpm"
28-
# Run prepublish to ensure everything is built properly
29-
# TODO: is this manual build step actually needed?
3028
- run: pnpm run ci:install
31-
# `prepack` hook _should_ run but doesn't seem to.
3229
- run: pnpm run ci:prepublish
3330
- name: Create Release Pull Request or Publish to npm
3431
id: changesets
@@ -47,6 +44,3 @@ jobs:
4744
pnpm run deps:check
4845
env:
4946
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 }}'

0 commit comments

Comments
 (0)