3131 needs : [build_linux, build_macos, build_windows]
3232
3333 steps :
34- - uses : actions/checkout@v5
34+ - uses : actions/checkout@v6
3535 - uses : ./.github/util/initialize
3636 with : {github-token: "${{ github.token }}"}
3737
5151
5252 steps :
5353 - name : Download Artifact
54- uses : actions/download-artifact@v5
54+ uses : actions/download-artifact@v6
5555
5656 - name : Release
5757 run : gh release upload ${{ github.ref_name }} build-*/* --repo ${{ github.repository }}
@@ -63,22 +63,23 @@ jobs:
6363 runs-on : ubuntu-latest
6464
6565 steps :
66- - uses : actions/checkout@v5
66+ - uses : actions/checkout@v6
6767 - uses : ./.github/util/initialize
68- with : {github-token: "${{ github.token }}"}
68+ with :
69+ github-token : ${{ github.token }}
70+ for-npm-deploy : true
6971
7072 - name : Deploy
7173 run : dart run grinder pkg-npm-deploy
7274 env :
7375 UPDATE_SASS_SASS_REPO : false
74- NPM_TOKEN : " ${{ secrets.NPM_TOKEN }}"
7576
7677 deploy_pub :
7778 name : Deploy Pub
7879 runs-on : ubuntu-latest
7980
8081 steps :
81- - uses : actions/checkout@v5
82+ - uses : actions/checkout@v6
8283 with :
8384 # We have to use this rather than the implicit GitHub token so that
8485 # pushing a new tag triggers another action.
@@ -104,7 +105,7 @@ jobs:
104105 runs-on : ubuntu-latest
105106
106107 steps :
107- - uses : actions/checkout@v5
108+ - uses : actions/checkout@v6
108109 with :
109110 token : ${{ secrets.GH_TOKEN }}
110111 # Set up .npmrc file to publish to npm
@@ -113,11 +114,15 @@ jobs:
113114 node-version : ' lts/*'
114115 check-latest : true
115116 registry-url : ' https://registry.npmjs.org'
117+
118+ # npm trusted publisher infrastructure requires npm >=11.5.1
119+ - run : npm install -g npm@latest
120+
116121 - name : Get Dart Sass version
117122 id : dart-sass-version
118123 run : echo "version=${{ github.ref_name }}" | tee --append "$GITHUB_OUTPUT"
119124 - name : Check out the language repo
120- uses : actions/checkout@v5
125+ uses : actions/checkout@v6
121126 with : {repository: sass/sass, path: build/language}
122127 - name : Copy types from the language repo
123128 run : cp -r build/language/js-api-doc pkg/sass-types/types
@@ -126,9 +131,7 @@ jobs:
126131 - name : Set the version of @sass/types
127132 run : npm pkg set version='${{ steps.dart-sass-version.outputs.version }}'
128133 working-directory : pkg/sass-types/
129- - run : npm publish
130- env :
131- NODE_AUTH_TOKEN : ' ${{ secrets.NPM_TOKEN }}'
134+ - run : npm publish --provenance
132135 working-directory : pkg/sass-types/
133136
134137 deploy_sass_parser :
@@ -137,7 +140,7 @@ jobs:
137140 needs : [deploy_npm]
138141
139142 steps :
140- - uses : actions/checkout@v5
143+ - uses : actions/checkout@v6
141144 with :
142145 token : ${{ secrets.GH_TOKEN }}
143146 # Set up .npmrc file to publish to npm
@@ -147,8 +150,8 @@ jobs:
147150 check-latest : true
148151 registry-url : ' https://registry.npmjs.org'
149152
150- # The repo package has a file dependency, but the released version needs
151- # a real dependency on the released version of Sass.
153+ # The repo package has a file dependency, but the released version needs a
154+ # real dependency on the released version of Sass.
152155 - name : Get Dart Sass version
153156 id : dart-sass-version
154157 run : echo "version=${{ github.ref_name }}" | tee --append "$GITHUB_OUTPUT"
@@ -157,9 +160,7 @@ jobs:
157160
158161 - run : npm run compile
159162 working-directory : pkg/sass-parser/
160- - run : npm publish
161- env :
162- NODE_AUTH_TOKEN : ' ${{ secrets.NPM_TOKEN }}'
163+ - run : npm publish --provenance
163164 working-directory : pkg/sass-parser/
164165
165166 - name : Get Sass parser version
@@ -174,7 +175,7 @@ jobs:
174175 runs-on : ubuntu-latest
175176
176177 steps :
177- - uses : actions/checkout@v5
178+ - uses : actions/checkout@v6
178179 - uses : dart-lang/setup-dart@v1
179180 - run : dart pub get
180181
@@ -189,7 +190,7 @@ jobs:
189190 runs-on : windows-latest
190191
191192 steps :
192- - uses : actions/checkout@v5
193+ - uses : actions/checkout@v6
193194 - uses : ./.github/util/initialize
194195 with : {github-token: "${{ github.token }}"}
195196
@@ -203,7 +204,7 @@ jobs:
203204 needs : [deploy_npm]
204205
205206 steps :
206- - uses : actions/checkout@v5
207+ - uses : actions/checkout@v6
207208 with :
208209 repository : sass/sass-site
209210 token : ${{ secrets.SASS_SITE_TOKEN }}
@@ -231,7 +232,7 @@ jobs:
231232 needs : [deploy_github]
232233
233234 steps :
234- - uses : actions/checkout@v5
235+ - uses : actions/checkout@v6
235236 with :
236237 repository : sass/embedded-host-node
237238 token : ${{ secrets.GH_TOKEN }}
0 commit comments