Skip to content

Commit e4f3c3e

Browse files
authored
Update actions and use correct node version (#841)
1 parent 09f540e commit e4f3c3e

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

.github/workflows/deploy-docs.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy docs
1+
name: 🚀 Deploy docs
22

33
on:
44
release:
@@ -12,12 +12,12 @@ on:
1212

1313
jobs:
1414
test:
15-
name: Deploy docs
15+
name: 🚀 Deploy docs
1616
runs-on: ubuntu-20.04
1717
steps:
1818
- uses: actions/checkout@v4
1919

20-
- name: Gather branch information
20+
- name: 📋 Gather branch information
2121
id: version_info
2222
continue-on-error: true
2323
run: |
@@ -26,15 +26,15 @@ jobs:
2626
2727
echo "We're running on version ${version}"
2828
29-
- name: Append the current version to the introduction document
29+
- name: 🛠️ Append the current version to the introduction document
3030
run: |
3131
sed -i "1 s|$| ${{ steps.version_info.outputs.version }}|" apidoc/introduction.md
3232
33-
- name: Run apidoc
33+
- name: 🏃🏼 Run apidoc
3434
run: |
3535
npx [email protected] -i . -f js -e node_modules
3636
37-
- name: Deploy apidocs for git tags
37+
- name: 🚀 Deploy apidocs for git tags
3838
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
3939
run: |
4040
set -e

.github/workflows/registry-purge-pr.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Purge Pull Request Image
1+
name: 🗑️ Purge Pull Request Image
22

33
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#registry_package
44
# Purge Pull Request Image
@@ -10,7 +10,7 @@ jobs:
1010
purge_pr_image:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Purge Pull Request Image
13+
- name: 💣 Purge Pull Request Image
1414
uses: vlaurin/[email protected]
1515
with:
1616
token: ${{ secrets.GHCR_TOKEN}}

.github/workflows/registry-purge.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Purge untagged images
1+
name: 🗑️ Purge untagged images
22

33
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#registry_package
44
# Run cleanup job if a new package was published or updated
@@ -9,10 +9,10 @@ jobs:
99
purge_untagged_images:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: clean packages
12+
- name: 🧹 clean packages
1313
uses: vlaurin/[email protected]
1414
with:
1515
token: ${{ secrets.GHCR_TOKEN}}
1616
organization: ${{ github.repository_owner}}
1717
container: ${{ github.event.repository.name }}
18-
untagged: true
18+
prune-untagged: true

.github/workflows/registry.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and publish to Github Container Registry
1+
name: 🏗️ Build and publish to Github Container Registry
22

33
on:
44
push:
@@ -20,17 +20,17 @@ jobs:
2020
packages: write
2121

2222
steps:
23-
- name: Checkout repository
23+
- name: ⬇️ Checkout repository
2424
uses: actions/checkout@v4
2525

26-
- name: Log in to the Container registry
26+
- name: 🔑 Log in to the Container registry
2727
uses: docker/[email protected]
2828
with:
2929
registry: ${{ env.REGISTRY }}
3030
username: ${{ github.actor }}
3131
password: ${{ secrets.GHCR_TOKEN }}
3232

33-
- name: Extract metadata (tags, labels) for Docker
33+
- name: 📋 Extract metadata (tags, labels) for Docker
3434
id: meta
3535
uses: docker/[email protected]
3636
with:
@@ -40,7 +40,7 @@ jobs:
4040
prefix=
4141
suffix=
4242
43-
- name: Build and push Docker image
43+
- name: 🐳 Build and push Docker image
4444
uses: docker/[email protected]
4545
with:
4646
context: .

.github/workflows/test.yaml

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test and build
1+
name: 👷🏼 Test and build
22

33
on:
44
push:
@@ -10,22 +10,22 @@ on:
1010

1111
jobs:
1212
lint:
13-
name: Lint code
13+
name: 🔬 Lint code
1414
runs-on: ubuntu-20.04
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- name: Install Node.js 16
18+
- name: Install Node.js
1919
uses: actions/[email protected]
2020
with:
21-
node-version: 16
21+
node-version: 18
2222

23-
- name: Get yarn cache directory path
23+
- name: 📁 Get yarn cache directory path
2424
id: yarn-cache-dir-path
2525
run: |
2626
echo "##[set-output name=dir;]$(yarn cache dir)"
2727
28-
- name: Restore yarn cache
28+
- name: 🔧 Restore yarn cache
2929
uses: actions/[email protected]
3030
id: yarn-cache
3131
with:
@@ -34,20 +34,20 @@ jobs:
3434
restore-keys: |
3535
${{ runner.os }}-yarn-
3636
37-
- name: Install project dependencies
37+
- name: ⬇️ Install project dependencies
3838
run: |
3939
yarn --prefer-offline --pure-lockfile
4040
41-
- name: Run eslint
41+
- name: 🔬 Run eslint
4242
run: |
4343
yarn run lint:ci
4444
4545
test:
46-
name: Run tests
46+
name: Run tests
4747
runs-on: ubuntu-20.04
4848
steps:
4949
- uses: actions/checkout@v4
5050

51-
- name: Execute tests
51+
- name: Execute tests
5252
run: |
5353
yarn test

0 commit comments

Comments
 (0)