Skip to content

Commit a81efdf

Browse files
committed
Update actions
1 parent 0327532 commit a81efdf

2 files changed

Lines changed: 19 additions & 18 deletions

File tree

.github/workflows/lint.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,19 @@ jobs:
88
lint:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/setup-node@v6
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Configure NodeJS
17+
uses: actions/setup-node@v6
1218
with:
1319
node-version: 25.x
1420
check-latest: false
15-
- uses: pnpm/action-setup@v4
16-
- run: pnpm run lint
21+
22+
- name: Configure pnpm
23+
uses: pnpm/action-setup@v4
24+
25+
- name: Lint
26+
run: pnpm run lint

.github/workflows/publish.yaml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ on:
1010
- completed
1111

1212
env:
13-
# Use docker.io for Docker Hub if empty
1413
REGISTRY: ghcr.io
15-
# github.repository as <account>/<repo>
1614
IMAGE_NAME: ${{ github.repository }}
1715

1816
jobs:
@@ -25,10 +23,10 @@ jobs:
2523
outputs:
2624
tag: ${{ steps.tag.outputs.new_tag }}
2725
steps:
28-
- uses: actions/checkout@v4
26+
- name: Checkout
27+
uses: actions/checkout@v4
2928
with:
30-
ref: ${{ github.event.pull_request.merge_commit_sha }}
31-
fetch-depth: '0'
29+
fetch-depth: 0
3230

3331
- name: Bump version and push tag
3432
id: tag
@@ -47,13 +45,11 @@ jobs:
4745
contents: write
4846
packages: write
4947
steps:
50-
- uses: actions/checkout@v4
48+
- name: Checkout
49+
uses: actions/checkout@v4
5150
with:
52-
ref: ${{ github.event.pull_request.merge_commit_sha }}
5351
fetch-depth: '0'
5452

55-
# Login against a Docker registry except on PR
56-
# https://github.com/docker/login-action
5753
- name: Log into registry ${{ env.REGISTRY }}
5854
if: github.event_name != 'pull_request'
5955
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
@@ -65,16 +61,12 @@ jobs:
6561
- name: Process repository name
6662
run: echo "IMAGE_PATH=${REGISTRY}/${IMAGE_NAME@L}" >> $GITHUB_ENV
6763

68-
# Extract metadata (tags, labels) for Docker
69-
# https://github.com/docker/metadata-action
7064
- name: Docker meta
7165
id: meta
7266
uses: docker/metadata-action@v5
7367
with:
7468
images: ${{ env.IMAGE_PATH }}
7569

76-
# Build and push Docker image with Buildx (don't push on PR)
77-
# https://github.com/docker/build-push-action
7870
- name: Build and push Docker image
7971
uses: docker/build-push-action@v5
8072
with:
@@ -94,8 +86,7 @@ jobs:
9486
statuses: write
9587
runs-on: ubuntu-latest
9688
steps:
97-
- name: Checkout
98-
uses: actions/checkout@v3
89+
- uses: actions/checkout@v3
9990
with:
10091
fetch-depth: 0
10192

0 commit comments

Comments
 (0)