Merge pull request #1198 from sass/deploy

Fix some deployment infrastructure
This commit is contained in:
Natalie Weizenbaum 2021-01-11 17:41:17 -08:00 committed by GitHub
commit e97dd1a279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 5 deletions

View File

@ -218,6 +218,9 @@ jobs:
with: {node-version: "${{ env.DEFAULT_NODE_VERSION }}"}
- name: Deploy
run: dart pub run grinder update-bazel
env:
GH_TOKEN: "${{ secrets.GH_TOKEN }}"
GH_USER: sassbot
deploy_pub:
name: "Deploy Pub"
@ -255,7 +258,7 @@ jobs:
name: "Deploy Chocolatey"
runs-on: windows-latest
needs: [sanity_checks]
if: "startsWith('refs/tags/', github.ref) && github.repository == 'sass/dart-sass'"
if: "startsWith(github.ref, 'refs/tags/') && github.repository == 'sass/dart-sass'"
steps:
- uses: actions/checkout@v2

View File

@ -1,3 +1,7 @@
## 1.32.4
* No user-visible changes.
## 1.32.3
* Optimize `==` for numbers that have different units.

View File

@ -1,5 +1,5 @@
name: sass
version: 1.32.3
version: 1.32.4
description: A Sass implementation in Dart.
author: Sass Team
homepage: https://github.com/sass/dart-sass

View File

@ -24,7 +24,15 @@ Future<void> updateBazel() async {
.readAsStringSync()
.replaceFirst(RegExp(r'"sass": "[^"]+"'), '"sass": "${pkg.version}"'));
try {
run("yarn", workingDirectory: p.join(repo, "sass"));
} on ProcessException catch (error) {
if (error.stderr.contains("Couldn't find any versions for \"sass\"")) {
log("The new sass version doesn't seem to be available yet, waiting 10s...");
await Future<void>.delayed(Duration(seconds: 10));
run("yarn", workingDirectory: p.join(repo, "sass"));
}
}
run("git",
arguments: [
@ -41,8 +49,8 @@ Future<void> updateBazel() async {
workingDirectory: repo,
runOptions: sassBotEnvironment);
var username = environment('GITHUB_USER');
var password = environment('GITHUB_TOKEN');
var username = environment('GH_USER');
var password = environment('GH_TOKEN');
await runAsync("git",
arguments: [
"push",