We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4a06ad commit 6ffeee0Copy full SHA for 6ffeee0
1 file changed
.github/workflows/release.yml
@@ -1,8 +1,9 @@
1
name: Release
2
3
on:
4
- release:
5
- types: [published]
+ push:
+ tags:
6
+ - 'v*'
7
8
# SECURITY: Limit permissions at workflow level
9
permissions:
@@ -74,9 +75,10 @@ jobs:
74
75
- os: macos-latest
76
platform: darwin
77
arch: arm64
- - os: macos-13
78
+ - os: macos-latest
79
80
arch: x64
81
+ node_arch: x64
82
- os: windows-latest
83
platform: win32
84
@@ -86,9 +88,17 @@ jobs:
86
88
uses: actions/checkout@v4
87
89
90
- 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 }}
98
uses: actions/setup-node@v4
99
with:
100
node-version: "22"
101
+ architecture: ${{ matrix.node_arch }}
102
103
- name: Install pnpm
104
uses: pnpm/action-setup@v2
0 commit comments