We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e76e7dd commit 449847eCopy full SHA for 449847e
1 file changed
.github/workflows/promote.yml
@@ -14,7 +14,7 @@ on:
14
- "promote-latest-v*"
15
16
permissions:
17
- contents: read
+ contents: write
18
19
jobs:
20
promote:
@@ -37,3 +37,10 @@ jobs:
37
npm dist-tag add "codebase-cli@$VERSION" latest
38
env:
39
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40
+
41
+ - name: Mark the matching GitHub release as latest
42
+ run: |
43
+ VERSION="${GITHUB_REF_NAME#promote-latest-v}"
44
+ gh release edit "v$VERSION" --prerelease=false --latest
45
+ env:
46
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments