Skip to content

Commit 0ccb4bf

Browse files
committed
ci: remove ohpm & hvigor caches and ignore development files in npmignore
1 parent d1bfb7b commit 0ccb4bf

2 files changed

Lines changed: 8 additions & 21 deletions

File tree

.github/workflows/publish.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ jobs:
4646
runs-on: ubuntu-latest
4747
container: ghcr.io/sanchuanhehe/harmony-next-pipeline-docker/harmonyos-ci-image:latest
4848
timeout-minutes: 15
49-
env:
50-
OHPM_CACHE_DIR: ${{ github.workspace }}/.ohpm-cache
5149
steps:
5250
- uses: actions/checkout@v6
5351
with:
@@ -62,25 +60,6 @@ jobs:
6260
with:
6361
node-version: 24
6462
registry-url: 'https://registry.npmjs.org'
65-
- name: Cache OHPM dependencies
66-
uses: actions/cache@v4
67-
with:
68-
path: |
69-
.ohpm-cache
70-
harmony/pushy/oh_modules
71-
harmony/har-wrapper/oh_modules
72-
key: ${{ runner.os }}-ohpm-${{ hashFiles('harmony/pushy/oh-package-lock.json5') }}
73-
restore-keys: |
74-
${{ runner.os }}-ohpm-
75-
- name: Cache Hvigor build outputs
76-
uses: actions/cache@v4
77-
with:
78-
path: |
79-
harmony/pushy/.hvigor
80-
harmony/har-wrapper/.hvigor
81-
key: ${{ runner.os }}-hvigor-${{ github.sha }}
82-
restore-keys: |
83-
${{ runner.os }}-hvigor-
8463
- run: bun install --frozen-lockfile
8564
- name: Build Harmony HAR
8665
run: npm run build:harmony-har -- --build-mode release

.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,12 @@ harmony/**
7474
android/jni/lzma/bin
7575
android/jni/lzma/DOC
7676

77+
# Ignore unnecessary development files
78+
scripts/**
79+
!scripts/check-expo-version.js
80+
harmony/pushy/src/test/
81+
babel.config.js
82+
tsconfig.json
83+
bunfig.toml
84+
7785

0 commit comments

Comments
 (0)