Skip to content

Commit 8ee0e4b

Browse files
committed
Always publish on release branches.
1 parent e47006f commit 8ee0e4b

File tree

1 file changed

+7
-41
lines changed

1 file changed

+7
-41
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,23 @@
11
name: Release packages
22

33
on:
4-
workflow_run:
5-
workflows: ['Run tests']
6-
types:
7-
- completed
8-
4+
push:
5+
branches:
6+
- main
7+
- next
98
env:
109
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
1110

1211
jobs:
13-
release-main:
14-
runs-on: ${{ matrix.os }}
15-
strategy:
16-
matrix:
17-
node: ['18.x']
18-
os: [ubuntu-latest]
19-
20-
if: >
21-
${{ github.ref == 'refs/heads/main' && github.event.workflow_run.conclusion == 'success' }}
22-
23-
steps:
24-
- uses: actions/checkout@v4
25-
- uses: pnpm/action-setup@v2
26-
- uses: actions/setup-node@v4
27-
with:
28-
node-version: ${{ matrix.node }}
29-
cache: 'pnpm'
30-
- run: pnpm install --frozen-lockfile
31-
- uses: changesets/action@v1
32-
with:
33-
publish: pnpm release
34-
version: pnpm changeset:version
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38-
39-
release-next:
40-
runs-on: ${{ matrix.os }}
41-
strategy:
42-
matrix:
43-
node: ['18.x']
44-
os: [ubuntu-latest]
45-
46-
if: >
47-
${{ github.ref == 'refs/heads/next' && github.event.workflow_run.conclusion == 'success' }}
12+
release:
13+
runs-on: ubuntu-latest
4814

4915
steps:
5016
- uses: actions/checkout@v4
5117
- uses: pnpm/action-setup@v2
5218
- uses: actions/setup-node@v4
5319
with:
54-
node-version: ${{ matrix.node }}
20+
node-version: '18.x'
5521
cache: 'pnpm'
5622
- run: pnpm install --frozen-lockfile
5723
- uses: changesets/action@v1

0 commit comments

Comments
 (0)