mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
Merge pull request #1198 from sass/deploy
Fix some deployment infrastructure
This commit is contained in:
commit
e97dd1a279
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
@ -1,3 +1,7 @@
|
||||
## 1.32.4
|
||||
|
||||
* No user-visible changes.
|
||||
|
||||
## 1.32.3
|
||||
|
||||
* Optimize `==` for numbers that have different units.
|
||||
|
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user