Skip to content

Commit

Permalink
ci: add prererelease flow
Browse files Browse the repository at this point in the history
  • Loading branch information
bferenc committed Feb 15, 2024
1 parent 9cf7383 commit 2599cee
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Prerelease
on:
push:
branches:
- master
jobs:
release:
name: Prerelease
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: yarn
- name: Build library
run: yarn build:prod
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: yarn run semantic-release
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- release
- master
jobs:
release:
name: Release
Expand All @@ -27,3 +26,8 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
run: yarn run semantic-release
- name: Rebase master
run: |
git checkout master &&
git rebase release &&
git push origin master

0 comments on commit 2599cee

Please sign in to comment.