Skip to content

Commit 5079a57

Browse files
committed
Replace deprecated github action with action-gh-release
The `set-output` command is deprecated and will be disabled soon.
1 parent 73d1f9b commit 5079a57

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed
Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
1+
# add-dist-header
2+
13
name: Create Release
24

35
on:
46
push:
57
tags:
6-
- 'v*'
8+
- "v*.*.*"
79

810
jobs:
9-
build:
11+
release:
1012
runs-on: ubuntu-latest
1113
steps:
12-
- uses: actions/checkout@v5 #see: https://github.com/actions/checkout/releases
13-
- uses: actions/create-release@v1 #see: https://github.com/actions/create-release/releases
14-
env:
15-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
16-
with:
17-
tag_name: ${{github.ref}}
18-
release_name: Release ${{github.ref}}
19-
draft: false
20-
prerelease: false
14+
- uses: actions/checkout@v5 #see: https://github.com/actions/checkout/releases
15+
- uses: softprops/action-gh-release@v2 #see: https://github.com/softprops/action-gh-release/releases

.github/workflows/run-spec-on-push.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# add-dist-header
2+
13
name: Build and Test
24

35
on: [push]

task-runner.sh.command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ releaseInstructions() {
6969
echo
7070
echo " === Tag and publish ==="
7171
echo " cd $projectHome"
72-
echo " git tag --annotate --message 'Release' $version"
72+
echo " git tag --annotate $version --message 'Release'"
7373
echo " git remote --verbose"
7474
echo " git push origin --tags"
7575
echo " npm publish"

0 commit comments

Comments
 (0)