Skip to content

Commit

Permalink
Create Pre-Release When PRs Merge (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr authored Dec 13, 2023
1 parent fbe4350 commit c525451
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish Pre-Release to NPM
on:
pull_request:
types:
- closed

jobs:
publish_prerelease:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: yarn
- run: yarn bump prerelease
- run: bin/publish --tag next
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Package to npm
name: Publish Package to NPM
on:
workflow_dispatch:
release:
Expand Down

0 comments on commit c525451

Please sign in to comment.