File tree 4 files changed +13
-13
lines changed
4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,11 @@ jobs:
134
134
version : ' lts/*'
135
135
check-latest : true
136
136
registry-url : ' https://registry.npmjs.org'
137
+
138
+ # The repo package has a file dependency, but the released version needs
139
+ # a real dependency on the released version of Sass.
140
+ - run : npm install sass@${{ steps.version.outputs.version }}
141
+
137
142
- run : npm publish
138
143
env :
139
144
NODE_AUTH_TOKEN : ' ${{ secrets.NPM_TOKEN }}'
Original file line number Diff line number Diff line change @@ -344,12 +344,8 @@ jobs:
344
344
345
345
- run : dart run grinder pkg-npm-dev
346
346
env : {UPDATE_SASS_SASS_REPO: false}
347
- - run : npm link
348
- working-directory : build/npm
349
347
- run : npm install
350
348
working-directory : pkg/sass-parser/
351
- - run : npm link sass
352
- working-directory : pkg/sass-parser/
353
349
- name : Run tests
354
350
run : npm test
355
351
working-directory : pkg/sass-parser/
@@ -362,6 +358,13 @@ jobs:
362
358
- uses : actions/checkout@v4
363
359
- uses : actions/setup-node@v4
364
360
with : {node-version: 'lts/*'}
361
+ - uses : ./.github/util/initialize
362
+ with : {github-token: "${{ github.token }}"}
363
+
364
+ - run : dart run grinder pkg-npm-dev
365
+ env : {UPDATE_SASS_SASS_REPO: false}
366
+ - run : npm install
367
+ working-directory : build/npm/
365
368
- run : npm install
366
369
working-directory : pkg/sass-parser/
367
370
- name : Run static analysis
Original file line number Diff line number Diff line change 32
32
},
33
33
"dependencies" : {
34
34
"postcss" : " >=8.4.41 <8.5.0" ,
35
- "sass" : " 1.78.0 "
35
+ "sass" : " file:../../build/npm "
36
36
},
37
37
"devDependencies" : {
38
38
"@types/jest" : " ^29.5.12" ,
Original file line number Diff line number Diff line change @@ -111,14 +111,6 @@ void main() {
111
111
() => expect (packageJson["version" ].toString (),
112
112
matchesChangelogVersion (_changelogVersion ("pkg/sass-parser" ))));
113
113
114
- test ("depends on the current sass version" , () {
115
- if (_isDevVersion (sassPubspec.version! )) return ;
116
-
117
- var dependencies = packageJson["dependencies" ] as Map <String , Object ?>;
118
- expect (
119
- dependencies, containsPair ("sass" , sassPubspec.version.toString ()));
120
- });
121
-
122
114
test (
123
115
"increments along with the sass version" ,
124
116
() => _checkVersionIncrementsAlong ('sass-parser' , sassPubspec,
You can’t perform that action at this time.
0 commit comments