Skip to content

Commit ef8f3c4

Browse files
committed
Replace an external github action with github cli
1 parent c6706e7 commit ef8f3c4

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ jobs:
4545
uses: actions/download-artifact@v4
4646

4747
- name: Release
48-
uses: softprops/action-gh-release@v2
49-
with:
50-
files: |
51-
build-*/*
48+
run: gh release upload ${{ github.ref_name }} build-*/* --repo ${{ github.repository }}
49+
env:
50+
GH_TOKEN: ${{ github.token }}
5251

5352
deploy_npm:
5453
name: Deploy npm
@@ -131,7 +130,7 @@ jobs:
131130
# a real dependency on the released version of Sass.
132131
- name: Get Dart Sass version
133132
id: dart-sass-version
134-
run: echo "version=${GITHUB_REF##*/}" | tee --append "$GITHUB_OUTPUT"
133+
run: echo "version=${{ github.ref_name }}" | tee --append "$GITHUB_OUTPUT"
135134
- run: npm install sass@${{ steps.dart-sass-version.outputs.version }}
136135
working-directory: pkg/sass-parser/
137136

@@ -190,7 +189,7 @@ jobs:
190189

191190
- name: Get version
192191
id: version
193-
run: echo "version=${GITHUB_REF##*/}" | tee --append "$GITHUB_OUTPUT"
192+
run: echo "version=${{ github.ref_name }}" | tee --append "$GITHUB_OUTPUT"
194193

195194
- name: Wait for npm registry's CDN to catch up on replications
196195
run: sleep 600
@@ -219,7 +218,7 @@ jobs:
219218
- name: Get version
220219
id: version
221220
run: |
222-
echo "version=${GITHUB_REF##*/}" | tee --append "$GITHUB_OUTPUT"
221+
echo "version=${{ github.ref_name }}" | tee --append "$GITHUB_OUTPUT"
223222
echo "protocol_version=$(curl -fsSL -H "Authorization: Bearer ${{ github.token }}" https://raw.githubusercontent.com/sass/sass/HEAD/spec/EMBEDDED_PROTOCOL_VERSION)" | tee --append "$GITHUB_OUTPUT"
224223
225224
- name: Update version

0 commit comments

Comments
 (0)