Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #119 from actions/fix-release-drafter
Separate use of Release Drafter
  • Loading branch information
James M. Greene authored and GitHub committed Feb 22, 2023
2 parents ff66932 + d6aec10 commit 2864cb6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/draft-release.yml
@@ -0,0 +1,17 @@
name: Draft release
on:
push:
branches:
- main

permissions:
contents: write

jobs:
draft-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
@@ -1,10 +1,14 @@
name: Run Tests

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -23,9 +27,3 @@ jobs:

- name: Run tests
run: npm run test

# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
if: github.ref_name == 'main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2864cb6

Please sign in to comment.