Skip to content

Commit

Permalink
Add check-prerelease workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alessbell committed Dec 7, 2022
1 parent ade539d commit a727a56
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/check-prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: No prerelease file (pre.json) present

on:
pull_request:
branches:
- main

jobs:
check_prerelease:
name: "Check branch does not have a prerelease file committed"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "Check that the file .changeset/pre.json is not present"
run: "! test -f .changeset/pre.json"
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
required: true

jobs:
deploy:
exit_prerelease:
name: Changesets Exit Prerelease
runs-on: ubuntu-latest
# Allow GITHUB_TOKEN to have write permissions
Expand Down

0 comments on commit a727a56

Please sign in to comment.