3131 needs : [build_linux, build_macos, build_windows]
3232
3333 steps :
34- - uses : actions/checkout@v4
34+ - uses : actions/checkout@v5
3535 - uses : ./.github/util/initialize
3636 with : {github-token: "${{ github.token }}"}
3737
6363 runs-on : ubuntu-latest
6464
6565 steps :
66- - uses : actions/checkout@v4
66+ - uses : actions/checkout@v5
6767 - uses : ./.github/util/initialize
6868 with : {github-token: "${{ github.token }}"}
6969
@@ -73,59 +73,39 @@ jobs:
7373 UPDATE_SASS_SASS_REPO : false
7474 NPM_TOKEN : " ${{ secrets.NPM_TOKEN }}"
7575
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-
9276 deploy_pub :
9377 name : Deploy Pub
9478 runs-on : ubuntu-latest
9579
9680 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 }}
9886 - uses : ./.github/util/initialize
9987 with : {github-token: "${{ github.token }}"}
10088
10189 - name : Deploy
10290 run : dart run grinder protobuf pkg-pub-deploy
10391 env : {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}
10492
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
121101
122102 deploy_sass_parser :
123103 name : Deploy sass-parser
124104 runs-on : ubuntu-latest
125105 needs : [deploy_npm]
126106
127107 steps :
128- - uses : actions/checkout@v4
108+ - uses : actions/checkout@v5
129109 with :
130110 token : ${{ secrets.GH_TOKEN }}
131111 # Set up .npmrc file to publish to npm
@@ -162,7 +142,7 @@ jobs:
162142 runs-on : ubuntu-latest
163143
164144 steps :
165- - uses : actions/checkout@v4
145+ - uses : actions/checkout@v5
166146 - uses : dart-lang/setup-dart@v1
167147 - run : dart pub get
168148
@@ -177,7 +157,7 @@ jobs:
177157 runs-on : windows-latest
178158
179159 steps :
180- - uses : actions/checkout@v4
160+ - uses : actions/checkout@v5
181161 - uses : ./.github/util/initialize
182162 with : {github-token: "${{ github.token }}"}
183163
@@ -191,7 +171,7 @@ jobs:
191171 needs : [deploy_npm]
192172
193173 steps :
194- - uses : actions/checkout@v4
174+ - uses : actions/checkout@v5
195175 with :
196176 repository : sass/sass-site
197177 token : ${{ secrets.SASS_SITE_TOKEN }}
@@ -219,7 +199,7 @@ jobs:
219199 needs : [deploy_github]
220200
221201 steps :
222- - uses : actions/checkout@v4
202+ - uses : actions/checkout@v5
223203 with :
224204 repository : sass/embedded-host-node
225205 token : ${{ secrets.GH_TOKEN }}
@@ -236,7 +216,8 @@ jobs:
236216 for dir in $(ls npm); do
237217 cat "npm/$dir/package.json" |
238218 jq --arg version ${{ steps.version.outputs.version }} '
239- .version |= $version
219+ .version |= $version |
220+ if (.dependencies.sass) then .dependencies.sass |= $version end
240221 ' > package.json.tmp &&
241222 mv package.json.tmp "npm/$dir/package.json"
242223 done
0 commit comments