Skip to content

Commit 504a5f2

Browse files
committed
Upgrade Github actions to v4 to fix deprecation warnings
1 parent 9e5bac2 commit 504a5f2

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Diff for: .github/workflows/ci.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ jobs:
4545
git config --global core.autocrlf false
4646
git config --global core.eol lf
4747
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949

5050
- name: Cache OCaml's opam
51-
uses: actions/cache@v3
51+
uses: actions/cache@v4
5252
with:
5353
path: ~/.opam
5454
key: ${{matrix.os}}-rescript-vscode-v4
@@ -59,7 +59,7 @@ jobs:
5959
ocaml-compiler: 4.14.x
6060

6161
- name: Use Node.js
62-
uses: actions/setup-node@v3
62+
uses: actions/setup-node@v4
6363
with:
6464
node-version: 16
6565
registry-url: 'https://registry.npmjs.org'
@@ -89,7 +89,7 @@ jobs:
8989
mv rescript-tools.exe ${{matrix.artifact-folder}}
9090
tar -cvf binary.tar ${{matrix.artifact-folder}}
9191
92-
- uses: actions/upload-artifact@v3
92+
- uses: actions/upload-artifact@v4
9393
with:
9494
name: ${{matrix.os}}
9595
path: binary.tar
@@ -99,10 +99,10 @@ jobs:
9999
runs-on: ubuntu-20.04
100100

101101
steps:
102-
- uses: actions/checkout@v3
102+
- uses: actions/checkout@v4
103103

104104
- name: Use Node.js
105-
uses: actions/setup-node@v3
105+
uses: actions/setup-node@v4
106106
with:
107107
node-version: 16
108108
registry-url: 'https://registry.npmjs.org'
@@ -111,31 +111,31 @@ jobs:
111111
- run: npm run compile
112112

113113
- name: Download MacOS binary
114-
uses: actions/download-artifact@v3
114+
uses: actions/download-artifact@v4
115115
with:
116116
name: macos-13
117117
path: binaries
118118
- run: tar -xvf binary.tar
119119
working-directory: binaries
120120

121121
- name: Download MacOS ARM binary
122-
uses: actions/download-artifact@v3
122+
uses: actions/download-artifact@v4
123123
with:
124124
name: macos-14
125125
path: binaries
126126
- run: tar -xvf binary.tar
127127
working-directory: binaries
128128

129129
- name: Download Linux binary
130-
uses: actions/download-artifact@v3
130+
uses: actions/download-artifact@v4
131131
with:
132132
name: ubuntu-20.04
133133
path: binaries
134134
- run: tar -xvf binary.tar
135135
working-directory: binaries
136136

137137
- name: Download Windows binary
138-
uses: actions/download-artifact@v3
138+
uses: actions/download-artifact@v4
139139
with:
140140
name: windows-latest
141141
path: binaries
@@ -191,19 +191,19 @@ jobs:
191191
if: startsWith(github.ref, 'refs/tags/')
192192
run: npx vsce package -o rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix ${{ steps.tag_name.outputs.tag }} --no-git-tag-version
193193

194-
- uses: actions/upload-artifact@v3
194+
- uses: actions/upload-artifact@v4
195195
if: github.ref != 'refs/heads/master'
196196
with:
197197
name: rescript-vscode-${{ steps.vars.outputs.sha_short }}.vsix
198198
path: rescript-vscode-${{ steps.vars.outputs.sha_short }}.vsix
199199

200-
- uses: actions/upload-artifact@v3
200+
- uses: actions/upload-artifact@v4
201201
if: github.ref == 'refs/heads/master'
202202
with:
203203
name: rescript-vscode-latest-master.vsix
204204
path: rescript-vscode-latest-master.vsix
205205

206-
- uses: actions/upload-artifact@v3
206+
- uses: actions/upload-artifact@v4
207207
if: startsWith(github.ref, 'refs/tags/')
208208
with:
209209
name: rescript-vscode-${{ steps.tag_name.outputs.tag }}.vsix

0 commit comments

Comments
 (0)