Update release.yml
This commit is contained in:
1 parent
80dcc322cf
commit
b1d8caf5c7
1 file changed
+6
-1
@@ -16,7 +16,7 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 18.x
|
||||||
cache: 'npm'
|
cache: "npm"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
@@ -30,6 +30,11 @@ jobs:
|
|||||||
tag_name: unstable
|
tag_name: unstable
|
||||||
github_token: ${{ secrets.GH_TOKEN }}
|
github_token: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
|
- name: Extract changelog
|
||||||
|
run: |
|
||||||
|
latest_release=$(awk 'BEGIN { RS="## \\[" } NR==2 { print "## ["$0 }' CHANGELOG.md)
|
||||||
|
echo -e "\n$latest_release" >> docs/unstable-changelog.md
|
||||||
|
|
||||||
- name: Create unstable release
|
- name: Create unstable release
|
||||||
run: gh release create unstable ./release/playlet.zip ./playlet/src/lib/playlet-lib.zip --notes-file docs/unstable-changelog.md --prerelease --title unstable
|
run: gh release create unstable ./release/playlet.zip ./playlet/src/lib/playlet-lib.zip --notes-file docs/unstable-changelog.md --prerelease --title unstable
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in new issue
Block a user