File tree 4 files changed +46
-12
lines changed
4 files changed +46
-12
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,23 @@ insert_final_newline = true
32
32
[* .js ]
33
33
indent_style = tab
34
34
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
+
35
52
# Set properties for TypeScript files:
36
53
[* .ts ]
37
54
indent_style = tab
@@ -84,6 +101,11 @@ indent_style = tab
84
101
indent_style = tab
85
102
tab_width = 2
86
103
104
+ # Set properties for XML files:
105
+ [* .xml ]
106
+ indent_style = tab
107
+ tab_width = 2
108
+
87
109
# Set properties for CSS files:
88
110
[* .css ]
89
111
indent_style = tab
@@ -101,6 +123,11 @@ indent_style = space
101
123
indent_size = 4
102
124
trim_trailing_whitespace = false
103
125
126
+ [* .md.txt ]
127
+ indent_style = space
128
+ indent_size = 4
129
+ trim_trailing_whitespace = false
130
+
104
131
# Set properties for `usage.txt` files:
105
132
[usage.txt ]
106
133
indent_style = space
@@ -121,6 +148,11 @@ indent_size = 2
121
148
indent_style = space
122
149
indent_size = 2
123
150
151
+ # Set properties for `manifest.json` files:
152
+ [manifest.json ]
153
+ indent_style = space
154
+ indent_size = 2
155
+
124
156
# Set properties for `tslint.json` files:
125
157
[tslint.json ]
126
158
indent_style = space
Original file line number Diff line number Diff line change 20
20
name : Publish Package
21
21
22
22
# Workflow triggers:
23
- on : push
23
+ on :
24
+ push :
25
+ tags : v[0-9]+.[0-9]+.[0-9]+
24
26
25
27
# Workflow jobs:
26
28
jobs :
@@ -33,20 +35,20 @@ jobs:
33
35
- uses : actions/setup-node@v1
34
36
with :
35
37
node-version : 15
36
- - name : Increment version
38
+ - name : Replace all GitHub links to individual packages with npm links
37
39
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'
41
44
- name : Publish package to npm
42
45
uses : JS-DevTools/npm-publish@v1
43
46
with :
44
47
token : ${{ secrets.NPM_TOKEN }}
45
48
access : public
46
- - name : Push changes
49
+ - name : Discard any uncommitted changes
47
50
run : |
48
- git push origin main
49
- git push --tags
51
+ git reset --hard
50
52
- uses : act10ns/slack@v1
51
53
with :
52
54
status : ${{ job.status }}
Original file line number Diff line number Diff line change 18
18
19
19
# Files #
20
20
# ########
21
- .postinstall.json
21
+
22
22
23
23
# Directories #
24
24
# ##############
70
70
* .tar
71
71
* .zip
72
72
73
- # Make an exception for compressed distributable files:
74
- ! dist /* .gz
75
-
76
73
# Logs and databases #
77
74
# #####################
78
75
* .log
Original file line number Diff line number Diff line change 15
15
],
16
16
"main" : " ./lib" ,
17
17
"directories" : {
18
+ "benchmark" : " ./benchmark" ,
19
+ "doc" : " ./docs" ,
20
+ "example" : " ./examples" ,
18
21
"lib" : " ./lib" ,
19
22
"test" : " ./test"
20
23
},
You can’t perform that action at this time.
0 commit comments