Skip to content

Commit

Permalink
feat(common): bump yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelfimov committed Sep 12, 2024
1 parent fa93392 commit 29eaa76
Show file tree
Hide file tree
Showing 1,223 changed files with 30,360 additions and 30,663 deletions.
2 changes: 1 addition & 1 deletion .config/husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commit staged
yarn commit staged
51 changes: 9 additions & 42 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,13 @@
name: Checks

on: [pull_request]
on:
pull_request:
paths-ignore:
- '.github/**'

jobs:
run:
name: Run
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.13'

- name: Install
run: yarn install

- 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: Release
run: yarn checks release
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

- name: TestIntegration
run: |
yarn set resolution typescript@npm:4.3.5 beta
yarn checks test integration
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
check:
name: Checks
if: github.event.pull_request.merged == false && github.event.action != 'closed'
uses: atls/shared/.github/workflows/checks.yaml@master
permissions: write-all
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: Preview
name: Release

on:
pull_request:
branches:
- master

jobs:
run:
name: Preview
name: Release
runs-on: ubuntu-latest

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

- name: Setup Node
uses: actions/setup-node@v2
Expand All @@ -35,11 +34,8 @@ jobs:
env:
GCR_KEYFILE: ${{ secrets.GCR_KEYFILE }}

- name: Preview
- name: Release
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: |
yarn workspaces changed foreach image pack \
--registry 'eu.gcr.io/${{ secrets.GCR_PROJECT_ID }}/services-' \
--tag-policy ctx-hash-timestamp \
--publish
yarn workspaces changed foreach image pack --publish --tag-policy hash-timestamp --registry 'eu.gcr.io/${{ secrets.GCR_PROJECT_ID }}/services-'
50 changes: 16 additions & 34 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,40 +1,22 @@
name: Publish

on:
workflow_dispatch:
pull_request:
types:
- closed
branches:
- master
paths-ignore:
- '.github/**'

jobs:
run:
publish:
if: github.event.pull_request.merged == true
name: Publish
runs-on: ubuntu-latest

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

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.13'

- 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/shared/.github/workflows/publish.yaml@master
permissions: write-all
with:
appId: ${{ vars.ATLANTIS_SUPER_BOT_APP_ID }}
secrets:
appPrivateKey: ${{ secrets.ATLANTIS_SUPER_BOT_PRIVATE_KEY }}
npmAuthToken: ${{ secrets.NPM_TOKEN }}
52 changes: 15 additions & 37 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,44 +2,22 @@ name: Release

on:
pull_request:
types: [closed]
branches:
- master
types:
- closed
paths-ignore:
- '.github/**'

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

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

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '16.13'

- name: Install
run: yarn install

- name: Changes
run: yarn files changed list
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

- name: Install Buildpack Cli
run: |
(curl -sSL "https://github.com/buildpacks/pack/releases/download/v0.23.0/pack-v0.23.0-linux.tgz" | sudo tar -C /usr/local/bin/ --no-same-owner -xzv pack)
- name: Login to Google Container Registry
run: echo -e $GCR_KEYFILE | docker login -u _json_key --password-stdin https://eu.gcr.io
env:
GCR_KEYFILE: ${{ secrets.GCR_KEYFILE }}

- name: Release
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: |
yarn workspaces changed foreach image pack --publish --tag-policy hash-timestamp --registry 'eu.gcr.io/${{ secrets.GCR_PROJECT_ID }}/services-'
release:
if: github.event.pull_request.merged == true
uses: atls/shared/.github/workflows/pack-image.yaml@master
permissions: write-all
with:
registryURL: 'eu.gcr.io'
registryUser: 'json_key'
imageNamePrefix: 'services-'
secrets:
registryKey: ${{ secrets.GCR_KEYFILE }}
project: ${{ secrets.GCR_PROJECT_ID }}
43 changes: 0 additions & 43 deletions .github/workflows/version.yaml

This file was deleted.

Loading

0 comments on commit 29eaa76

Please sign in to comment.