Skip to content

Commit

Permalink
Create nextrelease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rthaut authored Nov 1, 2022
1 parent f6cce0a commit 0ca1052
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/nextrelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: nextrelease
on:
push:
branches: [master]
pull_request:
branches: [master]
types: [labeled, unlabeled, edited, synchronize]

jobs:
sync:
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' && github.head_ref == 'nextrelease' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- uses: dropseed/nextrelease@v1
with:
prepare_cmd: |
sed -i -e "s/v$LAST_VERSION/v$NEXT_VERSION/g" README.md
npm version $NEXT_VERSION --no-git-tag-version --allow-same-version
publish_cmd: |
git tag -a v$VERSION_MAJOR -m Version $VERSION_MAJOR -f && git push origin v$VERSION_MAJOR -f
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_prefix: v
next_branch: nextrelease

0 comments on commit 0ca1052

Please sign in to comment.