File tree Expand file tree Collapse file tree 1 file changed +35
-8
lines changed
Expand file tree Collapse file tree 1 file changed +35
-8
lines changed Original file line number Diff line number Diff line change 88jobs :
99 publish-npm :
1010 runs-on : ubuntu-latest
11+
12+ env :
13+ HUSKY : 0
14+ NODE_VERSION : 24.x
15+
1116 permissions :
1217 id-token : write # Required to mint token for npm package provenance
1318 contents : write # Needed to create and write release notes in GitHub release
19+
1420 steps :
15- - uses : actions/checkout@v3
16- - run : npm install
17- - run : npm run build
18- - run : npm test
19- - uses : JS-DevTools/npm-publish@v3
20- with :
21- token : ${{ secrets.NPM_TOKEN }}
22- provenance : true
21+ - name : Checkout Project
22+ uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
25+
26+ - name : Use Node.js ${{ env.NODE_VERSION }}
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : ${{ env.NODE_VERSION }}
30+
31+ - name : Install Dependencies
32+ run : npm install
33+
34+ - name : Lint Files
35+ run : npm run lint
36+
37+ - name : Build Project
38+ run : npm run build
39+
40+ - name : Run Tests
41+ env :
42+ CI : true
43+ run : npm run test
44+
45+ - name : Publish to NPM
46+ uses : JS-DevTools/npm-publish@v3
47+ with :
48+ token : ${{ secrets.NPM_TOKEN }}
49+ provenance : true
You can’t perform that action at this time.
0 commit comments