Skip to content

Commit 3005fc4

Browse files
authored
chore(ci): update github actions (#242)
1 parent a45b154 commit 3005fc4

File tree

11 files changed

+55
-74
lines changed

11 files changed

+55
-74
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v6
1515
with:
1616
fetch-depth: 0
1717
- name: Setup Node
18-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@v6
1919
with:
20-
node-version: 20
20+
node-version-file: .nvmrc
2121
cache: 'npm'
2222
- name: Install Packages
2323
run: npm ci
@@ -33,13 +33,13 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v6
3737
with:
3838
fetch-depth: 0
3939
- name: Setup Node
40-
uses: actions/setup-node@v4
40+
uses: actions/setup-node@v6
4141
with:
42-
node-version: 20
42+
node-version-file: .nvmrc
4343
cache: 'npm'
4444
- name: Install Packages
4545
run: npm ci

.github/workflows/main-preview.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414
with:
1515
fetch-depth: 0
1616
- name: Setup Node
17-
uses: actions/setup-node@v4
17+
uses: actions/setup-node@v6
1818
with:
19-
node-version: 20
19+
node-version-file: .nvmrc
2020
- name: Install Packages
2121
run: npm ci
2222
shell: bash

.github/workflows/pr-preview-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
name: Build
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: gravity-ui/preview-build-action@v2
11+
- uses: gravity-ui/preview-build-action@v3
1212
with:
13-
node-version: 20
13+
node-version-file: .nvmrc

.github/workflows/pr-preview-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
github.event.workflow_run.conclusion == 'success'
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: gravity-ui/preview-deploy-action@v2
17+
- uses: gravity-ui/preview-deploy-action@v3
1818
with:
1919
project: date-components
2020
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}

.github/workflows/pr-title.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: PR Title
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- edited
10+
11+
concurrency:
12+
group: ${{github.workflow}}-${{github.ref}}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
verify_title:
17+
name: Verify Title
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v6
22+
- name: Setup Node
23+
uses: actions/setup-node@v6
24+
with:
25+
node-version-file: .nvmrc
26+
cache: npm
27+
- name: Install Packages
28+
run: npm ci
29+
- name: Run Commitlint
30+
run: echo '${{github.event.pull_request.title}}' | npx commitlint

.github/workflows/pr-visual-test-report.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/pr-visual-tests-report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
app-id: ${{ secrets.GRAVITY_UI_APP_ID }}
2020
private-key: ${{ secrets.GRAVITY_UI_APP_PRIVATE_KEY }}
2121
- name: Download Artifacts
22-
uses: actions/download-artifact@v4
22+
uses: actions/download-artifact@v6
2323
with:
2424
github-token: ${{ steps.generate-token.outputs.token }}
2525
run-id: ${{ github.event.workflow_run.id }}
2626
- name: Extract PR Number
2727
id: pr
28-
run: echo "::set-output name=id::$(<pr/pr-id.txt)"
28+
run: echo "id=$(<pr/pr-id.txt)" >> $GITHUB_OUTPUT
2929
shell: bash
3030
- name: Install AWS CLI
3131
uses: unfor19/install-aws-cli-action@v1

.github/workflows/pr-visual-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
outputs:
1111
playwright-version: ${{ steps.detect-playwright-version.outputs.version }}
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1414
- name: Setup Node.js from .nvmrc
15-
uses: actions/setup-node@v4
15+
uses: actions/setup-node@v6
1616
with:
1717
node-version-file: '.nvmrc'
1818
cache: 'npm'
@@ -32,7 +32,7 @@ jobs:
3232
container:
3333
image: mcr.microsoft.com/playwright:v${{ needs.visual-tests-prepare.outputs.playwright-version }}-jammy
3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v6
3636
- name: Install Packages
3737
run: npm ci
3838
- name: Run Visual Tests
@@ -41,7 +41,7 @@ jobs:
4141
CI: 'true'
4242
- name: Upload Playwright Report
4343
if: always()
44-
uses: actions/upload-artifact@v4
44+
uses: actions/upload-artifact@v5
4545
with:
4646
name: playwright-report
4747
path: ./playwright-report
@@ -54,7 +54,7 @@ jobs:
5454
shell: bash
5555
- name: Create PR Artifact
5656
if: always()
57-
uses: actions/upload-artifact@v4
57+
uses: actions/upload-artifact@v5
5858
with:
5959
name: pr
6060
path: ./pr-id.txt

.github/workflows/release-beta.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
exit 1
2424
fi
2525
fi
26-
- uses: actions/checkout@v4
27-
- uses: actions/setup-node@v4
26+
- uses: actions/checkout@v6
27+
- uses: actions/setup-node@v6
2828
with:
29-
node-version: 20
29+
node-version-file: .nvmrc
3030
registry-url: 'https://registry.npmjs.org'
3131
- name: Install Packages
3232
run: npm ci

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
release:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: gravity-ui/release-action@v1
11+
- uses: gravity-ui/release-action@v2
1212
with:
1313
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
1414
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
15-
node-version: 20
15+
node-version-file: .nvmrc

0 commit comments

Comments
 (0)