Skip to content

Commit

Permalink
Add a tag to the correct repo with the correct authentication (#1420)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Aug 4, 2021
1 parent 1157d3c commit c07f461
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.37.5

* No user-visible changes.

## 1.37.4

* No user-visible changes.
Expand Down
4 changes: 4 additions & 0 deletions pkg/sass_api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0-beta.2

* No user-visible changes.

## 1.0.0-beta.1

* Initial beta release.
4 changes: 2 additions & 2 deletions pkg/sass_api/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: sass_api
# Note: Every time we add a new Sass AST node, we need to bump the *major*
# version because it's a breaking change for anyone who's implementing the
# visitor interface(s).
version: 1.0.0-beta.1
version: 1.0.0-beta.2
description: Additional APIs for Dart Sass.
homepage: https://github.com/sass/dart-sass

environment:
sdk: '>=2.12.0 <3.0.0'

dependencies:
sass: 1.37.4
sass: 1.37.5

dependency_overrides:
sass: {path: ../..}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass
version: 1.37.4
version: 1.37.5
description: A Sass implementation in Dart.
homepage: https://github.com/sass/dart-sass

Expand Down
5 changes: 3 additions & 2 deletions tool/grind/subpackages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ String get _githubAuthorization {
return bearerToken != null
? "Bearer $bearerToken"
: "Basic " +
base64.encode(utf8.encode("${pkg.githubUser}:${pkg.githubPassword}"));
base64.encode(utf8
.encode(pkg.githubUser.value + ':' + pkg.githubPassword.value));
}

@Task('Deploy sub-packages to pub.')
Expand Down Expand Up @@ -81,7 +82,7 @@ Future<void> deploySubPackages() async {
if (await process.exitCode != 0) fail("pub publish ${pubspec.name} failed");

var response = await client.post(
Uri.parse("https://api.github.com/repos/sass/sass/git/refs"),
Uri.parse("https://api.github.com/repos/sass/dart-sass/git/refs"),
headers: {
"accept": "application/vnd.github.v3+json",
"content-type": "application/json",
Expand Down

0 comments on commit c07f461

Please sign in to comment.