Skip to content

Commit

Permalink
release on push to main when ref contains pre-release identifier (fac…
Browse files Browse the repository at this point in the history
  • Loading branch information
acywatson authored Oct 31, 2022
1 parent 89a4593 commit 3e54d49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Publish to NPM
on:
push:
tags:
- 'v**-next.**'
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
if: contains(github.ref, '-next.')
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
Expand Down

0 comments on commit 3e54d49

Please sign in to comment.