Skip to content

Commit ea0b1ae

Browse files
committed
ci: split pkg-pr-new action
1 parent 11bd719 commit ea0b1ae

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

Diff for: .github/workflows/pkg-pr-new.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Any Commit
2+
on:
3+
- push
4+
- pull_request
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js LTS
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: lts/*
22+
cache: yarn
23+
24+
- name: Install dependencies
25+
run: yarn --immutable
26+
27+
- name: Build
28+
run: yarn build
29+
30+
- run: yarn dlx pkg-pr-new publish

Diff for: .github/workflows/release.yml

-2
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,3 @@ jobs:
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47-
48-
- run: yarn dlx pkg-pr-new publish

0 commit comments

Comments
 (0)