File tree Expand file tree Collapse file tree 4 files changed +37
-11
lines changed Expand file tree Collapse file tree 4 files changed +37
-11
lines changed Original file line number Diff line number Diff line change 1+ name : ' Publish Package to NPM'
2+
3+ on : push
4+
5+ jobs :
6+ publish :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : checkout
10+ uses : actions/checkout@v2
11+ - name : node
12+ uses : actions/setup-node@v2
13+ with :
14+ node-version : 20
15+ registry-url : https://registry.npmjs.org
16+ - name : publish
17+ run : npm publish --access public
18+ env :
19+ NODE_AUTH_TOKEN : ${{secrets.NPM_AUTH_TOKEN}}
Original file line number Diff line number Diff line change 11/dist
2- /node_modules
2+ node_modules /
3+ jspm_packages /
4+
5+ web_modules /
6+
7+ * .tsbuildinfo \
Original file line number Diff line number Diff line change 11{
2- "name" : " run-script" ,
2+ "name" : " @gabsf-dev/ run-script" ,
33 "version" : " 0.0.1" ,
44 "description" : " The effortlessly way to run your package.json scripts" ,
5- "main" : " index.js" ,
5+ "main" : " ./dist/index.js" ,
6+ "bin" : {
7+ "run-script" : " ./dist/index.js"
8+ },
69 "scripts" : {
7- "dev" : " npx tsc && node ./dist/index.js" ,
8- "run-script" : " node ./dist/index.js" ,
910 "build" : " npx tsc" ,
1011 "test" : " echo \" Error: no test specified\" && exit 1"
1112 },
1213 "keywords" : [
14+ " run-script" ,
1315 " run" ,
1416 " script" ,
1517 " package.json"
1618 ],
17- "author" : " gabrielfdev " ,
18- "license" : " ISC " ,
19+ "author" : " gabrielf.dev " ,
20+ "license" : " MIT " ,
1921 "type" : " commonjs" ,
20- "repository" : {
21- "url" : " https://github.com/gabsf-dev/run-script"
22- },
22+ "repository" : " https://github.com/gabsf-dev/run-script" ,
2323 "homepage" : " https://github.com/gabsf-dev/run-script/blob/main/README.md" ,
2424 "dependencies" : {
2525 "@types/figlet" : " ^1.7.0" ,
3232 "@types/node" : " ^22.13.10" ,
3333 "typescript" : " ^5.8.2"
3434 }
35- }
35+ }
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env node
2+
13import { Command } from 'commander' ;
24import figlet from 'figlet' ;
35
You can’t perform that action at this time.
0 commit comments