fix: install dependencies before release checks

This commit is contained in:
Darío Sevilla committed 2026-10-15 09:33:16 +00:00
1 parent 1a1445ba13
commit 6675d27c42
4 files changed
+56 -6

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
name: Checks
on:
push:
branches: [development]
pull_request:
branches: [main, development]
permissions:
contents: read
concurrency:
group: checks-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Run checks
run: npm run check
- name: Build browser packages
run: npm run build
+13 -4
View File
@@ -22,6 +22,18 @@ jobs:
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Run checks
run: npm run check
- name: Detect release type
id: release_type
env:
@@ -47,14 +59,11 @@ jobs:
git checkout main
git pull --ff-only origin main
version="$(node scripts/bump-version.mjs "$RELEASE_KIND")"
git add manifest.json package.json
git add manifest.json package.json package-lock.json
git commit -m "chore(release): v${version} [skip release]"
git push origin main
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: Run checks
run: npm run check
- name: Build browser packages
run: npm run build