File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ jobs:
1414 - " 18"
1515 - " *"
1616 steps :
17- - uses : actions/checkout@v6
18- - uses : actions/setup-node@v6
17+ - uses : actions/checkout@v7
18+ - uses : actions/setup-node@v7
1919 with :
2020 node-version : ${{ matrix.node-version }}
2121 - run : npm install
2222 - run : npm test
23- - uses : codecov/codecov-action@v5
23+ - uses : codecov/codecov-action@v7
2424 with :
2525 name : Node.js ${{ matrix.node-version }}
2626 token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*.*.*"
7+
8+ permissions :
9+ id-token : write # Required for NPM trusted publishing.
10+ contents : read
11+
12+ jobs :
13+ npm :
14+ name : Publish to npm
15+ runs-on : ubuntu-latest
16+ environment :
17+ name : release
18+ permissions :
19+ contents : read
20+ id-token : write
21+ steps :
22+ - uses : actions/checkout@v7
23+ - uses : actions/setup-node@v7
24+ with :
25+ node-version : latest
26+ package-manager-cache : false # Disable automatic npm dependency caching to reduce cache poisoning risk
27+
28+ - run : npm ci --ignore-scripts
29+ - run : npm test
30+ - run : npm stage publish # Runs prepublish script.
Original file line number Diff line number Diff line change 22coverage /
33node_modules /
44npm-debug.log
5- package-lock.json
65dist
76* .tsbuildinfo
You can’t perform that action at this time.
0 commit comments