Skip to content

Commit

Permalink
feat: add release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras committed Oct 5, 2023
1 parent 4cee772 commit cccab3b
Show file tree
Hide file tree
Showing 9 changed files with 10,866 additions and 3,844 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI
on:
push:
branches:
- '*'
- '*/*'
- '**'
- '!main'
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v3
- name: Install deps
run: npm ci
- name: Lint affected
run: npx nx affected -t lint
- name: Test affected
run: npx nx affected -t test --configuration=ci
- name: Build affected
run: npx nx affected -t build
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: RELEASE
on: [workflow_dispatch]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v3
- name: Install deps
run: npm ci
- name: Lint
run: npx nx run-many -t lint
- name: Test
run: npx nx run-many -t test --configuration=ci
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.CI_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit cccab3b

Please sign in to comment.