File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1818 node-version : " 18.x"
1919 registry-url : " https://registry.npmjs.org/"
2020
21+ - name : Authenticate with npm
22+ env :
23+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
24+ run : echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
25+
2126 - name : Install dependencies
2227 run : npm ci --legacy-peer-deps
2328
2732 - name : Build project
2833 run : npm run build
2934
35+ - name : Post build
36+ run : npm run postbuild
37+
3038 - name : Publish to npm
3139 run : npm publish
3240 env :
Original file line number Diff line number Diff line change 11node_modules /
22dist /
3+ .DS_Store
Original file line number Diff line number Diff line change 11{
22 "name" : " conditional-helpers" ,
3- "version" : " 2.0.0 " ,
3+ "version" : " 2.0.1 " ,
44 "description" : " A collection of JavaScript helper functions to be used in conditional logic within projects" ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
77 "scripts" : {
88 "test" : " jest" ,
99 "lint" : " eslint ." ,
10- "build" : " tsc"
10+ "build" : " tsc" ,
11+ "postbuild" : " mv dist/index.* ./"
1112 },
1213 "repository" : {
1314 "type" : " git" ,
4647 },
4748 "type" : " module" ,
4849 "files" : [
49- " dist"
50+ " index.d.ts" ,
51+ " index.js" ,
52+ " README.md"
5053 ]
5154}
You can’t perform that action at this time.
0 commit comments