From ac99cf563a4a3fa41bc33dcd015d3a947cabd7e1 Mon Sep 17 00:00:00 2001 From: Kevin Marrec Date: Fri, 30 Sep 2022 13:25:38 +0200 Subject: [PATCH] ci: add ci --- .github/workflows/ci.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..00d284c --- /dev/null +++ b/.github/workflows/ci.yaml @@ -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}}