-
Notifications
You must be signed in to change notification settings - Fork 218
46 lines (43 loc) · 1.08 KB
/
config.yml
File metadata and controls
46 lines (43 loc) · 1.08 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
name: CI
on:
pull_request:
push:
branches: ["master"]
permissions:
checks: write
id-token: write
contents: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org/
- run: |
npm install --legacy-peer-deps
- run: |
npm run lint
- run: |
npm run coverage
- uses: codecov/codecov-action@v5
with:
files: ./coverage/lcov.info
- run: |
npx pkg-pr-new publish
release:
name: Release
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
# https://github.com/googleapis/release-please-action
- name: Release Please
uses: googleapis/release-please-action@v4
id: release
with:
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#github-credentials
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
release-type: node