ci: fix npm command and add step names

This commit is contained in:
Lukas Obermann
2024-12-16 13:43:17 +01:00
parent c48030aea0
commit 4c2ba0a1b4
2 changed files with 14 additions and 8 deletions
+12 -6
View File
@@ -16,9 +16,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npm test
- run: npm lint
- name: Install Node.js dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Run linting
run: npm run lint
publish-npm:
needs: test
@@ -32,8 +35,11 @@ jobs:
with:
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish --provenance --access public
- name: Install Node.js dependencies
run: npm ci
- name: Compile TypeScript files
run: npm run build
- name: Publish to NPM
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
+2 -2
View File
@@ -22,7 +22,7 @@ jobs:
run: npm ci
- name: Compile TypeScript files
run: npm run build
- name: Run lining
run: npm lint
- name: Run tests
run: npm test
- name: Run linting
run: npm run lint