Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
ci: add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmarrec committed Sep 30, 2022
1 parent 07431bc commit ac99cf5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- run: pnpm install
- run: pnpm lint
- run: pnpm build
- if: github.event_name == 'push' && startsWith(github.event.head_commit.message, 'chore(release)')
run: pnpm publish -q --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit ac99cf5

Please sign in to comment.