mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-02 09:37:49 +01:00
Update and lock sass_api version when releasing dart-sass-embedded (#1878)
This commit is contained in:
parent
5eb66fc219
commit
d2bc7105e8
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
@ -487,13 +487,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Get version
|
- name: Get version
|
||||||
id: version
|
id: version
|
||||||
run: echo "::set-output name=version::${GITHUB_REF##*/}"
|
run: |
|
||||||
|
echo "sass=${GITHUB_REF##*/}" | tee --append $GITHUB_OUTPUT
|
||||||
|
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
|
||||||
|
|
||||||
- name: Update version
|
- name: Update version
|
||||||
run: |
|
run: |
|
||||||
sed -i 's/version: .*/version: ${{ steps.version.outputs.version }}/' pubspec.yaml
|
sed -i 's/version: .*/version: ${{ steps.version.outputs.sass }}/' pubspec.yaml
|
||||||
|
dart pub remove sass_api
|
||||||
dart pub remove sass
|
dart pub remove sass
|
||||||
dart pub add sass:${{ steps.version.outputs.version }}
|
dart pub add sass:${{ steps.version.outputs.sass }}
|
||||||
|
dart pub add sass_api:^${{ steps.version.outputs.sass_api }}
|
||||||
|
|
||||||
# Delete a dependency override on Sass if it exists, and delete the
|
# Delete a dependency override on Sass if it exists, and delete the
|
||||||
# dependency_overrides field if it's now empty. The embedded compiler
|
# dependency_overrides field if it's now empty. The embedded compiler
|
||||||
@ -513,11 +517,11 @@ jobs:
|
|||||||
# make sure we're releasing against the latest version of all deps.
|
# make sure we're releasing against the latest version of all deps.
|
||||||
dart pub upgrade
|
dart pub upgrade
|
||||||
|
|
||||||
curl https://raw.githubusercontent.com/sass/dart-sass/${{ steps.version.outputs.version }}/CHANGELOG.md > CHANGELOG.md
|
curl --fail --silent --show-error --location --output CHANGELOG.md https://raw.githubusercontent.com/sass/dart-sass/${{ steps.version.outputs.sass }}/CHANGELOG.md
|
||||||
|
|
||||||
- uses: EndBug/add-and-commit@v8
|
- uses: EndBug/add-and-commit@v8
|
||||||
with:
|
with:
|
||||||
author_name: Sass Bot
|
author_name: Sass Bot
|
||||||
author_email: sass.bot.beep.boop@gmail.com
|
author_email: sass.bot.beep.boop@gmail.com
|
||||||
message: Update Dart Sass version and release
|
message: Update Dart Sass version and release
|
||||||
tag: ${{ steps.version.outputs.version }}
|
tag: ${{ steps.version.outputs.sass }}
|
||||||
|
Loading…
Reference in New Issue
Block a user