-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (30 loc) · 749 Bytes
/
Copy pathci.yml
File metadata and controls
33 lines (30 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: build
on:
workflow_dispatch:
push:
branches: [ master ]
tags: [ v* ]
pull_request:
branches: [ master ]
permissions:
contents: read
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm test
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2.3.6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
file: coverage/lcov.info
fail-on-error: false
- run: npm publish --access public
if: startsWith(github.ref, 'refs/tags/v')