File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 49
49
retention-days : 1
50
50
if-no-files-found : error
51
51
52
-
53
52
- name : Publish snapshot
54
53
if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
55
54
env :
62
61
# see https://github.com/npm/cli/pull/4588
63
62
VERSION="0.0.0-SNAPSHOT-$(date '+%Y%m%d%H%M%S')"
64
63
npm --workspaces version $VERSION --no-git-tag-version --no-workspaces-update
65
- npm --workspaces pkg set "dependencies.@restatedev/restate-sdk-core=$VERSION"
66
- npm --workspaces pkg set "dependencies.@restatedev/restate-sdk=$VERSION"
67
- npm --workspaces pkg set "dependencies.@restatedev/restate-sdk-clients=$VERSION"
64
+ set() {
65
+ npm --workspaces pkg get "dependencies.$1" |
66
+ jq -r 'with_entries(select(.value != {})) | keys[]' |
67
+ xargs -I% npm --workspace % pkg set "dependencies.$1=$VERSION"
68
+ }
69
+ set "@restatedev/restate-sdk-core"
70
+ set "@restatedev/restate-sdk"
71
+ set "@restatedev/restate-sdk-clients"
68
72
npm --workspaces update
69
73
# We use dist-tag dev for the snapshot releases, see https://docs.npmjs.com/cli/v9/commands/npm-dist-tag for more info
70
74
# A snapshot MUST not be published with latest tag (omitting --tag defaults to latest) to avoid users to install snapshot releases
You can’t perform that action at this time.
0 commit comments