File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish to npm and create GitHub Release
22
33on :
4- push :
5- paths :
6- - ' package.json'
7- branches :
8- - master
9-
4+ push :
5+ branches : master
6+
107jobs :
11- publish :
12- runs-on : ubuntu-latest
13-
14- steps :
15- - name : Checkout repository
16- uses : actions/checkout@v3
17- with :
18- fetch-depth : 0 # Fetch all history for all branches and tags
19-
20- - name : Set up Node.js
21- uses : actions/setup-node@v3
22- with :
23- node-version : ' 20'
24-
25- - name : Install dependencies
26- run : npm install
27-
28- - name : Run build script
29- run : npm run build
30-
31- - name : Configure npm for publishing
32- run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
33-
34- - name : Publish to npm
35- env :
36- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
37- run : npm publish --access public
8+ publish :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - uses : actions/setup-node@v3
13+ with :
14+ node-version : " 20"
15+ - run : npm ci
16+ - run : npm test
17+ - uses : JS-DevTools/npm-publish@v3
18+ with :
19+ token : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11{
22 "name" : " modulatecss" ,
3- "version" : " 1.0.17 " ,
3+ "version" : " 1.0.18 " ,
44 "publishConfig" : {
55 "registry" : " https://npm.pkg.github.com"
66 },
You can’t perform that action at this time.
0 commit comments