diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a95991..c2d66ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -80,8 +80,5 @@ jobs: git config --global user.name 'Devo GitHub Action' git config --global user.email 'desa@devo.com' - - name: Build - run: npm run build - - name: Publish ${{ github.event.inputs.version }}${{ github.event.inputs.dry == 'true' && ' (--dry-run)' || '' }} run: npm run release:ci -- ${{ github.event.inputs.version != 'auto' && github.event.inputs.version || '' }}${{ github.event.inputs.dry == 'true' && ' --dry-run' || '' }} diff --git a/.github/workflows/setup-node/action.yml b/.github/workflows/setup-node/action.yml index 1121cdd..62c8308 100644 --- a/.github/workflows/setup-node/action.yml +++ b/.github/workflows/setup-node/action.yml @@ -7,6 +7,8 @@ runs: uses: actions/setup-node@v4 with: node-version: 22 + cache: npm + registry-url: https://registry.npmjs.org/ - name: Cache dependencies ⚡ id: cache_dependencies @@ -15,6 +17,13 @@ runs: path: node_modules key: node-modules-${{ hashFiles('package-lock.json') }} + - name: Cache dist ⚡ + id: cache_dist + uses: actions/cache@v4 + with: + path: '**/dist' + key: dist-${{ github.sha }} + - name: Install dependencies 🔧 shell: bash if: steps.cache_dependencies.outputs.cache-hit != 'true'