Skip to content

Commit

Permalink
refactor(ci): cache key, bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Mar 31, 2024
1 parent 2e24cc1 commit 961e0e9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
test:
type: boolean
description: Skip publishing step
no-tag-check:
type: boolean
description: Skip tag checking step
push:
tags:
- "*"
Expand Down Expand Up @@ -54,8 +57,8 @@ jobs:
- name: 🦥 Cache Dependencies
uses: actions/cache@v4
with:
key: venmic-arm-deps
path: build/_deps
key: venmic-arm
path: build

- name: 🏗️ Build Addon
uses: addnab/docker-run-action@4f65fabd2431ebc8d299f8e5a018d79a769ae185
Expand Down Expand Up @@ -88,6 +91,7 @@ jobs:
uses: actions/checkout@v4

- name: 🛑 Check Tag
if: "${{ github.event.inputs.no-tag-check != 'true' }}"
run: |
dnf install -y jq
pkg_version="v$(jq -r .version < package.json)"
Expand All @@ -103,7 +107,7 @@ jobs:
registry-url: "https://registry.npmjs.org"

- name: 🍃 Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false
Expand All @@ -112,7 +116,7 @@ jobs:
run: pnpm install --ignore-scripts

- name: 📦 Download Build (x86_64)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: addon-x86_64
path: build/Release
Expand All @@ -121,7 +125,7 @@ jobs:
run: pnpm pkg-prebuilds-copy --baseDir build/Release --source venmic-addon.node --name=venmic-addon --strip --napi_version=7 --arch=x64

- name: 📦 Download Build (arm64)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: addon-arm64
path: build/Release
Expand Down

0 comments on commit 961e0e9

Please sign in to comment.