Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/workflow #258

Merged
merged 1 commit into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 12 additions & 42 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,15 @@ name: Checks
on: [pull_request]

jobs:
run:
name: Run
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18.19'

- name: Install
run: yarn install
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

- name: Lint
run: yarn checks lint
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

- name: TypeCheck
run: yarn checks typecheck
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

- name: TestUnit
run: yarn checks test unit
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

- name: TestIntegration
run: yarn checks test integration
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

- name: Release
run: yarn checks release
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
check:
name: Typecheck, lint
uses: atls/tools/.github/workflows/reusable-checks.yaml@master
permissions: write-all
release:
name: Release
uses: atls/tools/.github/workflows/reusable-release.yaml@master
permissions: write-all
test:
name: Tests
uses: atls/tools/.github/workflows/reusable-tests.yaml@master
permissions: write-all
35 changes: 3 additions & 32 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,6 @@ on:
jobs:
run:
name: Publish
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: master

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18.19'

- name: Install
run: yarn install

- name: Npm Publish
run: |
yarn version apply --all
yarn workspaces changed foreach --verbose --topological --no-private npm publish --access public
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Commit changes
uses: EndBug/add-and-commit@v7
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
with:
author_name: github-actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: 'chore(common): publish'
branch: master
uses: atls/tools/.github/workflow/reusable-publish.yaml
secrets:
npmAuthToken: ${{ secrets.NPM_TOKEN }}
34 changes: 3 additions & 31 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,7 @@ on:
- master

jobs:
run:
Run:
name: Version
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: master

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18.19'

- name: Install
run: yarn install

- name: Version
run: yarn workspaces changed foreach --no-private --verbose version patch --deferred
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

- name: Commit changes
uses: EndBug/add-and-commit@v7
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
with:
author_name: github-actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: 'chore(common): versions'
branch: master
uses: atls/tools/.github/workflows/reusable-version.yaml@master
permissions: write-all