-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.11 KB
/
node-ci.yml
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
name: Node.js CI
'on':
push:
branches:
- master
- beta
- renovate/**
pull_request:
types:
- opened
- synchronize
env:
FORCE_COLOR: 1
NPM_CONFIG_COLOR: always
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version-file: .nvmrc
cache: npm
- run: npm clean-install
- run: npm test
- uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # v5.0.2
trigger-release:
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs:
- verify
steps:
- uses: octokit/[email protected]
with:
route: >-
POST
/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
owner: form8ion
repo: overridable-prompts
ref: ${{ github.ref }}
workflow_id: release.yml
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}