File tree 9 files changed +59
-20
lines changed
9 files changed +59
-20
lines changed Original file line number Diff line number Diff line change
1
+ # This has to be a separate workflow to satisfy pub.dev's somewhat draconian
2
+ # requirements for when and how GitHub actions are allowed publish packages.
3
+ # Specifically, it requires that each publish action be triggered by a tag that
4
+ # contains the version number for that action, so we can't just publish sass_api
5
+ # as part of the standard sass release flow because that was triggered by a tag
6
+ # with the sass version number.
7
+ name : Release sass-api
8
+
9
+ on :
10
+ push :
11
+ tags : ['sass-api-[0-9]+.[0-9]+.*']
12
+
13
+ jobs :
14
+ deploy_sass_api :
15
+ if : github.event.repository.fork == false
16
+ name : Deploy sass_api
17
+ runs-on : ubuntu-latest
18
+
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+ - uses : ./.github/util/initialize
22
+ with : {github-token: "${{ github.token }}"}
23
+
24
+ - name : Deploy
25
+ run : dart run grinder deploy-sass-api
26
+ env :
27
+ PUB_CREDENTIALS : " ${{ secrets.PUB_CREDENTIALS }}"
28
+ GH_TOKEN : " ${{ secrets.GH_TOKEN }}"
29
+ GH_USER : sassbot
Original file line number Diff line number Diff line change @@ -95,29 +95,25 @@ jobs:
95
95
96
96
steps :
97
97
- uses : actions/checkout@v4
98
+ with :
99
+ # We have to use this rather than the implicit GitHub token so that
100
+ # pushing a new tag triggers another action.
101
+ token : ${{ secrets.GH_TOKEN }}
98
102
- uses : ./.github/util/initialize
99
103
with : {github-token: "${{ github.token }}"}
100
104
101
105
- name : Deploy
102
106
run : dart run grinder protobuf pkg-pub-deploy
103
107
env : {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}
104
108
105
- deploy_sass_api :
106
- name : Deploy sass_api
107
- runs-on : ubuntu-latest
108
- needs : [deploy_pub]
109
-
110
- steps :
111
- - uses : actions/checkout@v4
112
- - uses : ./.github/util/initialize
113
- with : {github-token: "${{ github.token }}"}
114
-
115
- - name : Deploy
116
- run : dart run grinder deploy-sass-api
117
- env :
118
- PUB_CREDENTIALS : " ${{ secrets.PUB_CREDENTIALS }}"
119
- GH_TOKEN : " ${{ secrets.GH_TOKEN }}"
120
- GH_USER : sassbot
109
+ - name : Get Sass API version
110
+ id : sass-api-version
111
+ run : |
112
+ echo "version=$(cat pkg/sass_api/pubspec.yaml | sed -nE 's/version: (.*)/\1/p')" | tee --append "$GITHUB_OUTPUT"
113
+ # This should be /-separated rather than hyphenated, but pub.dev doesn't
114
+ # currently allow that (dart-lang/pub-dev#8690).
115
+ - run : git tag sass-api-${{ steps.sass-api-version.outputs.version }}
116
+ - run : git push --tag
121
117
122
118
deploy_sass_parser :
123
119
name : Deploy sass-parser
Original file line number Diff line number Diff line change
1
+ ## 1.86.2
2
+
3
+ * No user-visible changes.
4
+
1
5
## 1.86.1
2
6
3
7
* Improve the performance of ` file: ` URL case canonicalization on Windows and
Original file line number Diff line number Diff line change
1
+ ## 0.4.18
2
+
3
+ * No user-visible changes.
4
+
1
5
## 0.4.17
2
6
3
7
* No user-visible changes.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " sass-parser" ,
3
- "version" : " 0.4.17 " ,
3
+ "version" : " 0.4.18 " ,
4
4
"description" : " A PostCSS-compatible wrapper of the official Sass parser" ,
5
5
"repository" : " sass/sass" ,
6
6
"author" : " Google Inc." ,
Original file line number Diff line number Diff line change
1
+ ## 15.3.2
2
+
3
+ * No user-visible changes.
4
+
1
5
## 15.3.1
2
6
3
7
* No user-visible changes.
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ name: sass_api
2
2
# Note: Every time we add a new Sass AST node, we need to bump the *major*
3
3
# version because it's a breaking change for anyone who's implementing the
4
4
# visitor interface(s).
5
- version : 15.3.1
5
+ version : 15.3.2
6
6
description : Additional APIs for Dart Sass.
7
7
homepage : https://github.com/sass/dart-sass
8
8
9
9
environment :
10
10
sdk : " >=3.6.0 <4.0.0"
11
11
12
12
dependencies :
13
- sass : 1.86.1
13
+ sass : 1.86.2
14
14
15
15
dev_dependencies :
16
16
dartdoc : ^8.0.14
Original file line number Diff line number Diff line change 1
1
name : sass
2
- version : 1.86.1
2
+ version : 1.86.2
3
3
description : A Sass implementation in Dart.
4
4
homepage : https://github.com/sass/dart-sass
5
5
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ Future<void> deploySassApi() async {
71
71
fail ("dart pub publish ${pubspec .name } failed" );
72
72
}
73
73
74
+ // TODO(nweiz): Remove this when we use this tag to trigger the release
75
+ // (blocked by dart-lang/pub-dev#8690).
74
76
var response = await client.post (
75
77
Uri .parse ("https://api.github.com/repos/sass/dart-sass/git/refs" ),
76
78
headers: {
You can’t perform that action at this time.
0 commit comments