Skip to content

Commit

Permalink
ci: add action
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Aug 9, 2023
1 parent 73aa341 commit 812679f
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:

main:
name: Default
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: NPM install
uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: Lint
run: npm run lint

- name: Build
run: npm run build

- name: Test
run: npm run test

- name: Semantic release
if: github.ref == 'refs/heads/main'
run: npx --no-install semantic-release --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 812679f

Please sign in to comment.