Skip to content

Commit

Permalink
Fixed missing changes.md problem
Browse files Browse the repository at this point in the history
  • Loading branch information
thejhh committed Jan 4, 2023
1 parent 0c85b93 commit 89439bb
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
node-version: ${{ matrix.node-version }}
- run: cd testing && npm ci
- run: cd testing && npm run test:ci
list-changes:
name: Collect changes
release:
name: Collect changes and Publish release
runs-on: ubuntu-latest
needs:
- test
Expand All @@ -39,27 +39,13 @@ jobs:
git log --oneline --no-merges --format="%s" $(git describe --tags --abbrev=0)..${{ github.ref }} |
jq -R -s -c 'split("\n") | map({"type": "list-item", "text": .})' |
jq -s -c '{"type": "list", "items": .}' >> changes.md
- name: Persist file to workspace
uses: actions/persist_to_workspace@v1
- name: Create release and tag
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: changes.md
release:
name: Publish release
runs-on: ubuntu-latest
needs:
- list-changes
steps:
- name: Restore file from workspace
uses: actions/restore_from_workspace@v1
with:
path: changes.md
- name: Create release and tag
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v0.1.${{ github.run_number }}
release_name: Release v0.1.${{ github.run_number }}
body_path: "changes.md"
draft: false
prerelease: false
tag_name: v0.1.${{ github.run_number }}
release_name: Release v0.1.${{ github.run_number }}
body_path: "changes.md"
draft: false
prerelease: false

0 comments on commit 89439bb

Please sign in to comment.