31
31
needs : [build_linux, build_macos, build_windows]
32
32
33
33
steps :
34
- - uses : actions/checkout@v4
34
+ - uses : actions/checkout@v5
35
35
- uses : ./.github/util/initialize
36
36
with : {github-token: "${{ github.token }}"}
37
37
63
63
runs-on : ubuntu-latest
64
64
65
65
steps :
66
- - uses : actions/checkout@v4
66
+ - uses : actions/checkout@v5
67
67
- uses : ./.github/util/initialize
68
68
with : {github-token: "${{ github.token }}"}
69
69
@@ -73,59 +73,39 @@ jobs:
73
73
UPDATE_SASS_SASS_REPO : false
74
74
NPM_TOKEN : " ${{ secrets.NPM_TOKEN }}"
75
75
76
- deploy_bazel :
77
- name : Deploy Bazel
78
- runs-on : ubuntu-latest
79
- needs : [deploy_npm]
80
-
81
- steps :
82
- - uses : actions/checkout@v4
83
- - uses : ./.github/util/initialize
84
- with : {github-token: "${{ github.token }}"}
85
-
86
- - name : Deploy
87
- run : dart run grinder update-bazel
88
- env :
89
- GH_TOKEN : " ${{ secrets.GH_TOKEN }}"
90
- GH_USER : sassbot
91
-
92
76
deploy_pub :
93
77
name : Deploy Pub
94
78
runs-on : ubuntu-latest
95
79
96
80
steps :
97
- - uses : actions/checkout@v4
81
+ - uses : actions/checkout@v5
82
+ with :
83
+ # We have to use this rather than the implicit GitHub token so that
84
+ # pushing a new tag triggers another action.
85
+ token : ${{ secrets.GH_TOKEN }}
98
86
- uses : ./.github/util/initialize
99
87
with : {github-token: "${{ github.token }}"}
100
88
101
89
- name : Deploy
102
90
run : dart run grinder protobuf pkg-pub-deploy
103
91
env : {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}
104
92
105
- deploy_sass_api :
106
- name : Deploy sass_api
107
- runs-on : ubuntu-latest
108
- needs : [deploy_pub]
109
-
110
- steps :
111
- - uses : actions/checkout@v4
112
- - uses : ./.github/util/initialize
113
- with : {github-token: "${{ github.token }}"}
114
-
115
- - name : Deploy
116
- run : dart run grinder deploy-sass-api
117
- env :
118
- PUB_CREDENTIALS : " ${{ secrets.PUB_CREDENTIALS }}"
119
- GH_TOKEN : " ${{ secrets.GH_TOKEN }}"
120
- GH_USER : sassbot
93
+ - name : Get Sass API version
94
+ id : sass-api-version
95
+ run : |
96
+ echo "version=$(cat pkg/sass_api/pubspec.yaml | sed -nE 's/version: (.*)/\1/p')" | tee --append "$GITHUB_OUTPUT"
97
+ # This should be /-separated rather than hyphenated, but pub.dev doesn't
98
+ # currently allow that (dart-lang/pub-dev#8690).
99
+ - run : git tag sass-api-${{ steps.sass-api-version.outputs.version }}
100
+ - run : git push --tag
121
101
122
102
deploy_sass_parser :
123
103
name : Deploy sass-parser
124
104
runs-on : ubuntu-latest
125
105
needs : [deploy_npm]
126
106
127
107
steps :
128
- - uses : actions/checkout@v4
108
+ - uses : actions/checkout@v5
129
109
with :
130
110
token : ${{ secrets.GH_TOKEN }}
131
111
# Set up .npmrc file to publish to npm
@@ -162,7 +142,7 @@ jobs:
162
142
runs-on : ubuntu-latest
163
143
164
144
steps :
165
- - uses : actions/checkout@v4
145
+ - uses : actions/checkout@v5
166
146
- uses : dart-lang/setup-dart@v1
167
147
- run : dart pub get
168
148
@@ -177,7 +157,7 @@ jobs:
177
157
runs-on : windows-latest
178
158
179
159
steps :
180
- - uses : actions/checkout@v4
160
+ - uses : actions/checkout@v5
181
161
- uses : ./.github/util/initialize
182
162
with : {github-token: "${{ github.token }}"}
183
163
@@ -191,7 +171,7 @@ jobs:
191
171
needs : [deploy_npm]
192
172
193
173
steps :
194
- - uses : actions/checkout@v4
174
+ - uses : actions/checkout@v5
195
175
with :
196
176
repository : sass/sass-site
197
177
token : ${{ secrets.SASS_SITE_TOKEN }}
@@ -219,7 +199,7 @@ jobs:
219
199
needs : [deploy_github]
220
200
221
201
steps :
222
- - uses : actions/checkout@v4
202
+ - uses : actions/checkout@v5
223
203
with :
224
204
repository : sass/embedded-host-node
225
205
token : ${{ secrets.GH_TOKEN }}
@@ -236,7 +216,8 @@ jobs:
236
216
for dir in $(ls npm); do
237
217
cat "npm/$dir/package.json" |
238
218
jq --arg version ${{ steps.version.outputs.version }} '
239
- .version |= $version
219
+ .version |= $version |
220
+ if (.dependencies.sass) then .dependencies.sass |= $version end
240
221
' > package.json.tmp &&
241
222
mv package.json.tmp "npm/$dir/package.json"
242
223
done
0 commit comments