File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -487,13 +487,17 @@ jobs:
487487
488488 - name : Get version
489489 id : version
490- run : echo "::set-output name=version::${GITHUB_REF##*/}"
490+ run : |
491+ echo "sass=${GITHUB_REF##*/}" | tee --append $GITHUB_OUTPUT
492+ echo "sass_api=$(curl --fail --silent --show-error --location https://raw.githubusercontent.com/sass/dart-sass/${GITHUB_REF##*/}/pkg/sass_api/pubspec.yaml | yq .version)" | tee --append $GITHUB_OUTPUT
491493
492494 - name : Update version
493495 run : |
494- sed -i 's/version: .*/version: ${{ steps.version.outputs.version }}/' pubspec.yaml
496+ sed -i 's/version: .*/version: ${{ steps.version.outputs.sass }}/' pubspec.yaml
497+ dart pub remove sass_api
495498 dart pub remove sass
496- dart pub add sass:${{ steps.version.outputs.version }}
499+ dart pub add sass:${{ steps.version.outputs.sass }}
500+ dart pub add sass_api:^${{ steps.version.outputs.sass_api }}
497501
498502 # Delete a dependency override on Sass if it exists, and delete the
499503 # dependency_overrides field if it's now empty. The embedded compiler
@@ -513,11 +517,11 @@ jobs:
513517 # make sure we're releasing against the latest version of all deps.
514518 dart pub upgrade
515519
516- curl https://raw.githubusercontent.com/sass/dart-sass/${{ steps.version.outputs.version }}/CHANGELOG.md > CHANGELOG.md
520+ curl --fail --silent --show-error --location --output CHANGELOG.md https://raw.githubusercontent.com/sass/dart-sass/${{ steps.version.outputs.sass }}/CHANGELOG.md
517521
518522 - uses : EndBug/add-and-commit@v8
519523 with :
520524 author_name : Sass Bot
521525 author_email : sass.bot.beep.boop@gmail.com
522526 message : Update Dart Sass version and release
523- tag : ${{ steps.version.outputs.version }}
527+ tag : ${{ steps.version.outputs.sass }}
You can’t perform that action at this time.
0 commit comments