diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9702a8c..5c0a6fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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