Skip to content

Commit

Permalink
Add prelease workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanCQ committed Sep 9, 2024
1 parent 6a43cec commit bb3e411
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Pre Release library
on:
push:
branches:
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
- '!main' # excludes main

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install NPM dependencies
run: npm ci

- name: Build library
run: npm run build

- name: Publish library to github packages and npm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

0 comments on commit bb3e411

Please sign in to comment.