File tree Expand file tree Collapse file tree 8 files changed +58
-20
lines changed Expand file tree Collapse file tree 8 files changed +58
-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
+ pull_request :
13
+
14
+ jobs :
15
+ deploy_sass_api :
16
+ if : " github.event.repository.fork == false"
17
+ permissions :
18
+ attestations : write
19
+ contents : write
20
+ id-token : write
21
+ name : Deploy sass_api
22
+ runs-on : ubuntu-latest
23
+
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ - uses : ./.github/util/initialize
27
+ with : {github-token: "${{ github.token }}"}
28
+
29
+ - name : Deploy
30
+ run : dart run grinder deploy-sass-api
31
+ env :
32
+ PUB_CREDENTIALS : " ${{ secrets.PUB_CREDENTIALS }}"
33
+ GH_TOKEN : " ${{ secrets.GH_TOKEN }}"
34
+ GH_USER : sassbot
Original file line number Diff line number Diff line change @@ -102,22 +102,14 @@ jobs:
102
102
run : dart run grinder protobuf pkg-pub-deploy
103
103
env : {PUB_CREDENTIALS: "${{ secrets.PUB_CREDENTIALS }}"}
104
104
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
105
+ - name : Get Sass API version
106
+ id : sass-api-version
107
+ run : |
108
+ echo "version=$(cat pkg/sass_api/pubspec.yaml | sed -nE 's/version: (.*)/\1/p')" | tee --append "$GITHUB_OUTPUT"
109
+ # This should be /-separated rather than hyphenated, but pub.dev doesn't
110
+ # currently allow that (dart-lang/pub-dev#8690).
111
+ - run : git tag sass-api-${{ steps.sass-api-version.outputs.version }}
112
+ - run : git push --tag
121
113
122
114
deploy_sass_parser :
123
115
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
You can’t perform that action at this time.
0 commit comments