-
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (59 loc) · 1.56 KB
/
Copy pathci.yml
File metadata and controls
62 lines (59 loc) · 1.56 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
name: test - node ${{ matrix.node-version }}
steps:
- uses: actions/checkout@v1
- name: set node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm install
- name: npm run build
run: npm run build
- name: npm run test
run: npm run test --ci
release:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/master'
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v5
- name: set node.js 24
uses: actions/setup-node@v6
with:
node-version: 24
- name: Use npm with trusted publishing support
run: npm install -g npm@11.13.0
- name: Show release tool versions
run: |
node --version
npm --version
npm config get registry
- name: npm install
run: npm install
- name: npm run build
run: npm run build
- name: Release
uses: cycjimmy/semantic-release-action@v6
with:
extra_plugins: |
@semantic-release/npm@13.1.5
@semantic-release/changelog@6.0.3
@semantic-release/git@10.0.1
branches: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEBUG: semantic-release:*,@semantic-release/npm:*
NPM_CONFIG_LOGLEVEL: verbose