Skip to content

Commit be6aa56

Browse files
Use NPM instead of Yarn in release workflow
1 parent dd4219a commit be6aa56

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

.github/workflows/release.yml

+18-7
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,29 @@ jobs:
1717
uses: actions/setup-node@v3
1818
with:
1919
node-version: '22'
20-
cache: 'yarn'
20+
cache: 'npm'
2121

2222
- name: Setup Go environment
2323
uses: actions/setup-go@v3
2424
with:
2525
go-version: '1.23'
2626

2727
- name: Install dependencies
28-
run: yarn install --immutable --prefer-offline
29-
30-
- name: Build and test frontend
31-
run: yarn build
28+
run: npm ci
29+
30+
- name: Check types
31+
run: npm run typecheck
32+
- name: Lint
33+
run: npm run lint
34+
- name: Unit tests
35+
run: npm run test:ci
36+
- name: Build frontend
37+
run: |
38+
if [ "${{ github.event_name }}" == "push" ] && [ "${{ github.ref }}" == "refs/heads/main" ]; then
39+
npm run build -- --profile --json stats.json
40+
else
41+
npm run build
42+
fi
3243
3344
- name: Check for backend
3445
id: check-for-backend
@@ -59,8 +70,8 @@ jobs:
5970
if: ${{ env.GRAFANA_API_KEY == '' }}
6071

6172
- name: Sign plugin
62-
run: yarn sign || exit 0
63-
if: ${{ env.GRAFANA_API_KEY != '' }}
73+
run: npm run sign
74+
if: ${{ env.GRAFANA_ACCESS_POLICY_TOKEN != '' }}
6475

6576
- name: Get plugin metadata
6677
id: metadata

0 commit comments

Comments
 (0)