File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+ on :
3+ release :
4+ types : [published]
5+
6+ jobs :
7+ publish :
8+ runs-on : ubuntu-latest
9+ permissions :
10+ contents : read
11+ id-token : write
12+ steps :
13+ - uses : actions/checkout@v4
14+ # Setup .npmrc file to publish to npm
15+ - uses : actions/setup-node@v4
16+ with :
17+ node-version : 24
18+ registry-url : " https://registry.npmjs.org"
19+
20+ - name : Install npm 11.5
21+ run : npm install -g npm@11.5
22+
23+ - name : Display node and npm versions
24+ run : |
25+ node -v
26+ npm -v
27+
28+ - name : Run a clean install of the project
29+ run : npm ci
30+
31+ - name : Publish the package to npm
32+ run : npm publish --provenance --access public
33+ env :
34+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1- # ` app-template `
1+ # React 17 Library Template
2+
3+ This repository provides a minimal template and CI workflows for developing React 17 components, and publishing them to NPM as a component library.
You can’t perform that action at this time.
0 commit comments