Skip to content

Commit

Permalink
feat: new actions, remove gpt integration
Browse files Browse the repository at this point in the history
  • Loading branch information
brunos3d committed Oct 11, 2023
1 parent 5b92bc4 commit 370229e
Show file tree
Hide file tree
Showing 42 changed files with 32,634 additions and 24,477 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build affected packages

on:
push:
branches: ['main']
pull_request:
branches: ['main', 'next', 'develop']

jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v3
- run: npm ci

- run: npx nx format:check
- run: npx nx affected -t lint --parallel=3 --exclude='*,!tag:package'
- run: npx nx affected -t test --parallel=3 --exclude='*,!tag:package'
- run: npx nx affected -t build --parallel=3 --exclude='*,!tag:package'
81 changes: 0 additions & 81 deletions .github/workflows/on-push.yml

This file was deleted.

63 changes: 0 additions & 63 deletions .github/workflows/pre-release.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/prerelease.yml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/release.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/trigger-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Trigger Release

on:
workflow_dispatch:
inputs:
packages:
description: 'Package name (as in Nx)'
required: true
type: choice
options:
- affected
- all
- nextjs-mf
- node
- storybook-addon
- typescript
- utils
- native-federation-typescript
- native-federation-tests
- enhanced

jobs:
publish:
runs-on: ubuntu-latest
if: ${{ github.event.inputs.packages }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v3
- run: npm ci

- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures

- name: Release ${{ github.event.inputs.packages }} package(s)
run: |
if [[ ${{ github.event.inputs.packages }} == 'affected' ]]; then
npx nx affected -t release --parallel=3 --exclude='*,!tag:package'
elif [[ ${{ github.event.inputs.packages }} == 'all' ]]; then
npx nx run-many --target=release --all --parallel=3 -exclude='*,!tag:package'
else
npx nx run ${{ github.event.inputs.packages }}:release
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
1 change: 0 additions & 1 deletion gpt/commit.js

This file was deleted.

16 changes: 0 additions & 16 deletions gpt/constants.js

This file was deleted.

Loading

0 comments on commit 370229e

Please sign in to comment.