Skip to content

Commit

Permalink
Merge pull request #554 from atls/feat/github-actions-renew
Browse files Browse the repository at this point in the history
Feat: github actions renew
  • Loading branch information
Nelfimov authored Aug 13, 2024
2 parents 387e54b + 16a97f1 commit 332d773
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 43 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
name: Checks

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

jobs:
check:
name: Typecheck, lint
uses: atls/tools/.github/workflows/reusable-checks.yaml@master
uses: atls/shared/.github/workflows/checks.yaml@master
permissions: write-all
release:
name: Release
uses: atls/tools/.github/workflows/reusable-release.yaml@master
uses: atls/shared/.github/workflows/release.yaml@master
permissions: write-all
test:
name: Tests
uses: atls/tools/.github/workflows/reusable-tests.yaml@master
uses: atls/shared/.github/workflows/tests.yaml@master
permissions: write-all
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
publish:
name: Publish
uses: atls/tools/.github/workflows/reusable-publish.yaml@master
uses: atls/shared/.github/workflows/publish.yaml@master
permissions: write-all
secrets:
npmAuthToken: ${{ secrets.NPM_TOKEN }}
52 changes: 16 additions & 36 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,22 @@
name: Release

on:
workflow_run:
workflows:
- Publish
pull_request:
branches:
- master
types:
- completed
- closed
paths-ignore:
- '.github/**'

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

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

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.13'

- name: Install
run: yarn install

- 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 Yandex Container Registry
run: echo -e $YCR_KEYFILE | docker login -u json_key --password-stdin cr.yandex
env:
YCR_KEYFILE: ${{ secrets.YCR_KEYFILE }}

- name: Release
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: |
yarn workspaces changed foreach image pack --publish --tag-policy hash-timestamp --registry 'cr.yandex/${{ secrets.YCR_PROJECT_ID }}/'
release:
uses: atls/shared/.github/workflows/pack-image.yaml@master
permissions: write-all
with:
registryURL: 'ghcr.io'
registryUser: ${{ github.repository_owner }}
project: ${{ github.repository_owner }}
nodeVersion: '20'
secrets:
registryKey: ${{ secrets.GITHUB_TOKEN }}
7 changes: 5 additions & 2 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ name: Version

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

jobs:
run:
name: Version
uses: atls/tools/.github/workflows/reusable-version.yaml@master
uses: atls/shared/.github/workflows/version.yaml@master
permissions: write-all

0 comments on commit 332d773

Please sign in to comment.