File tree Expand file tree Collapse file tree 4 files changed +44
-12
lines changed
Expand file tree Collapse file tree 4 files changed +44
-12
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,23 @@ insert_final_newline = true
3232[* .js ]
3333indent_style = tab
3434
35+ [* .js.txt ]
36+ indent_style = tab
37+
38+ # Set properties for JavaScript ES module files:
39+ [* .mjs ]
40+ indent_style = tab
41+
42+ [* .mjs.txt ]
43+ indent_style = tab
44+
45+ # Set properties for JavaScript CommonJS files:
46+ [* .cjs ]
47+ indent_style = tab
48+
49+ [* .cjs.txt ]
50+ indent_style = tab
51+
3552# Set properties for TypeScript files:
3653[* .ts ]
3754indent_style = tab
@@ -84,6 +101,11 @@ indent_style = tab
84101indent_style = tab
85102tab_width = 2
86103
104+ # Set properties for XML files:
105+ [* .xml ]
106+ indent_style = tab
107+ tab_width = 2
108+
87109# Set properties for CSS files:
88110[* .css ]
89111indent_style = tab
@@ -101,6 +123,11 @@ indent_style = space
101123indent_size = 4
102124trim_trailing_whitespace = false
103125
126+ [* .md.txt ]
127+ indent_style = space
128+ indent_size = 4
129+ trim_trailing_whitespace = false
130+
104131# Set properties for `usage.txt` files:
105132[usage.txt ]
106133indent_style = space
@@ -121,6 +148,11 @@ indent_size = 2
121148indent_style = space
122149indent_size = 2
123150
151+ # Set properties for `manifest.json` files:
152+ [manifest.json ]
153+ indent_style = space
154+ indent_size = 2
155+
124156# Set properties for `tslint.json` files:
125157[tslint.json ]
126158indent_style = space
Original file line number Diff line number Diff line change 2020name : Publish Package
2121
2222# Workflow triggers:
23- on : push
23+ on :
24+ push :
25+ tags : v[0-9]+.[0-9]+.[0-9]+
2426
2527# Workflow jobs:
2628jobs :
@@ -33,20 +35,20 @@ jobs:
3335 - uses : actions/setup-node@v1
3436 with :
3537 node-version : 15
36- - name : Increment version
38+ - name : Replace all GitHub links to individual packages with npm links
3739 run : |
38- git config --local user.email "noreply@stdlib.io"
39- git config --local user.name "stdlib-bot"
40- npm version patch
40+ find . -type f -name '*.md' -print0 | xargs -0 sed -Ei 's/@stdlib\/([^:]*)\]: https:\/\/github.com\/stdlib-js/@stdlib\/\1\]: https:\/\/www.npmjs.com\/package\/@stdlib/g'
41+ - name : Replace all stdlib GitHub dependencies with the respective npm packages
42+ run : |
43+ find package.json -type f -print0 | xargs -0 sed -Ei 's/"github:stdlib-js[^"]*"/"^0.0.x"/g'
4144 - name : Publish package to npm
4245 uses : JS-DevTools/npm-publish@v1
4346 with :
4447 token : ${{ secrets.NPM_TOKEN }}
4548 access : public
46- - name : Push changes
49+ - name : Discard any uncommitted changes
4750 run : |
48- git push origin main
49- git push --tags
51+ git reset --hard
5052 - uses : act10ns/slack@v1
5153 with :
5254 status : ${{ job.status }}
Original file line number Diff line number Diff line change 1818
1919# Files #
2020# ########
21- .postinstall.json
21+
2222
2323# Directories #
2424# ##############
7070* .tar
7171* .zip
7272
73- # Make an exception for compressed distributable files:
74- ! dist /* .gz
75-
7673# Logs and databases #
7774# #####################
7875* .log
Original file line number Diff line number Diff line change 1515 ],
1616 "main" : " ./lib" ,
1717 "directories" : {
18+ "benchmark" : " ./benchmark" ,
1819 "doc" : " ./docs" ,
1920 "example" : " ./examples" ,
2021 "lib" : " ./lib" ,
You can’t perform that action at this time.
0 commit comments