Skip to content

Commit

Permalink
setup CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cnuss committed Nov 25, 2023
1 parent c4967d1 commit e25f1fa
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Push to Main

on:
workflow_dispatch:
push:
branches:
- main

jobs:
prerelease:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn

- run: yarn

- run: xvfb-run -a yarn test
if: runner.os == 'Linux'

- run: yarn test
if: runner.os != 'Linux'

- if: ${{ matrix.os == 'ubuntu-latest' }}
uses: scaffoldly/bump-version-action@v1
with:
action: prerelease
version-file: package.json
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e25f1fa

Please sign in to comment.