Skip to content

Commit 6ffeee0

Browse files
authored
fix(ci): update release workflow triggers and runner compatibility (#6)
* fix(ci): update release workflow triggers and runner compatibility * fix: add node arch for x64 * fix: split setup-node into two steps
1 parent a4a06ad commit 6ffeee0

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Release
22

33
on:
4-
release:
5-
types: [published]
4+
push:
5+
tags:
6+
- 'v*'
67

78
# SECURITY: Limit permissions at workflow level
89
permissions:
@@ -74,9 +75,10 @@ jobs:
7475
- os: macos-latest
7576
platform: darwin
7677
arch: arm64
77-
- os: macos-13
78+
- os: macos-latest
7879
platform: darwin
7980
arch: x64
81+
node_arch: x64
8082
- os: windows-latest
8183
platform: win32
8284
arch: x64
@@ -86,9 +88,17 @@ jobs:
8688
uses: actions/checkout@v4
8789

8890
- name: Setup Node.js
91+
if: ${{ !matrix.node_arch }}
92+
uses: actions/setup-node@v4
93+
with:
94+
node-version: "22"
95+
96+
- name: Setup Node.js (x64 via Rosetta)
97+
if: ${{ matrix.node_arch }}
8998
uses: actions/setup-node@v4
9099
with:
91100
node-version: "22"
101+
architecture: ${{ matrix.node_arch }}
92102

93103
- name: Install pnpm
94104
uses: pnpm/action-setup@v2

0 commit comments

Comments
 (0)