Skip to content

Commit

Permalink
simplifies
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Nov 29, 2024
1 parent 677d410 commit d693ef8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 60 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/main-ci.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Main CI
name: CI

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

jobs:
lint:
Expand All @@ -21,7 +19,6 @@ jobs:
- run: pnpm run test

test:
needs: [lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -36,8 +33,27 @@ jobs:

- run: pnpm run test

release:
publish:
if: github.event_name == 'push'
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- name: NPM registry authentication
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: pnpm i

- run: pnpm build:packages

- run: pnpm publish:packages

publish-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/commit-release.yaml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/main-pr-ci.yaml

This file was deleted.

0 comments on commit d693ef8

Please sign in to comment.