File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change 90
90
with :
91
91
name : minijson-${{ runner.os }}-${{ runner.arch }}
92
92
path : ./dist
93
+ retention-days : 1
93
94
94
95
Release :
96
+ if : startsWith(github.ref, 'refs/tags/')
95
97
runs-on : ubuntu-latest
96
98
needs : build
97
99
steps :
@@ -106,7 +108,7 @@ jobs:
106
108
name : merged-artifacts
107
109
path : dist/
108
110
109
- - name : Prepare
111
+ - name : Prepare Dist
110
112
run : |
111
113
chmod +x ./dist/*/minijson
112
114
zip -9 -j ./dist/minijson-windows-x64.zip ./dist/win32-x64/minijson.exe
@@ -116,7 +118,6 @@ jobs:
116
118
ls -l ./dist
117
119
118
120
- name : Draft the release
119
- if : startsWith(github.ref, 'refs/tags/')
120
121
121
122
with :
122
123
token : ${{ secrets.GITHUB_TOKEN }}
@@ -128,8 +129,20 @@ jobs:
128
129
dist/minijson-macos-arm64.tar.gz
129
130
dist/minijson-linux-x64.tar.gz
130
131
132
+ - name : Setup Node
133
+ uses : actions/setup-node@v4
134
+ with :
135
+ node-version : ${{ matrix.node }}
136
+
137
+ - name : Setup Pnpm
138
+ uses : pnpm/action-setup@v4
139
+ with :
140
+ version : ${{ matrix.pnpm }}
141
+
142
+ - name : Install dependencies
143
+ run : pnpm install
144
+
131
145
- name : Publish to npm
132
- if : startsWith(github.ref, 'refs/tags/')
133
146
run : pnpm publish
134
147
env :
135
148
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments