@@ -2,9 +2,9 @@ name: Build and test
2
2
3
3
on :
4
4
push :
5
- branches : [ main ]
5
+ branches : [main]
6
6
pull_request :
7
- branches : [ main ]
7
+ branches : [main]
8
8
9
9
jobs :
10
10
build :
@@ -16,40 +16,39 @@ jobs:
16
16
node-version : [19.x]
17
17
18
18
steps :
19
- - uses : actions/checkout@v3
19
+ - uses : actions/checkout@v4
20
20
- name : Use Node.js ${{ matrix.node-version }}
21
- uses : actions/setup-node@v3
21
+ uses : actions/setup-node@v4
22
22
with :
23
23
node-version : ${{ matrix.node-version }}
24
- registry-url : ' https://registry.npmjs.org'
24
+ registry-url : " https://registry.npmjs.org"
25
25
- run : npm run clean
26
26
- run : npm ci
27
27
- run : npm run proto
28
28
- run : npm run verify
29
- - run : npm pack --workspaces true --include-workspace-root false
29
+ - run : npm pack --workspaces true --include-workspace-root false
30
30
- run : mv restatedev-restate-sdk-0*.tgz restatedev-restate-sdk.tgz
31
31
- run : mv restatedev-restate-sdk-clients-0*.tgz restatedev-restate-sdk-clients.tgz
32
- - uses : actions/upload-artifact@v3
32
+ - uses : actions/upload-artifact@v4
33
33
with :
34
34
name : restatedev-restate-sdk
35
35
path : restatedev-restate-sdk.tgz
36
36
retention-days : 1
37
37
if-no-files-found : error
38
- - uses : actions/upload-artifact@v3
38
+ - uses : actions/upload-artifact@v4
39
39
with :
40
40
name : restatedev-restate-sdk-clients
41
41
path : restatedev-restate-sdk-clients.tgz
42
42
retention-days : 1
43
43
if-no-files-found : error
44
44
45
-
46
45
- name : Publish snapshot
47
46
if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
48
47
env :
49
48
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
50
49
run : |
51
50
# We're using 0.0.0 to avoid this version to be higher than released versions.
52
- # To use it:
51
+ # To use it:
53
52
# "@restatedev/restate-sdk": "^0.0.0-SNAPSHOT"
54
53
# Hack around the fact that npm version simply doesn't update dependants -_-"
55
54
# see https://github.com/npm/cli/pull/4588
0 commit comments