Skip to content

Commit 10ce330

Browse files
committed
Auto-generated commit
1 parent 3c6ef16 commit 10ce330

File tree

5 files changed

+45
-19
lines changed

5 files changed

+45
-19
lines changed

.editorconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,23 @@ insert_final_newline = true
3232
[*.js]
3333
indent_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]
3754
indent_style = tab
@@ -84,6 +101,11 @@ indent_style = tab
84101
indent_style = tab
85102
tab_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]
89111
indent_style = tab
@@ -101,6 +123,11 @@ indent_style = space
101123
indent_size = 4
102124
trim_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]
106133
indent_style = space
@@ -121,6 +148,11 @@ indent_size = 2
121148
indent_style = space
122149
indent_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]
126158
indent_style = space

.github/workflows/publish.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
name: 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:
2628
jobs:
@@ -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 }}

.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# Files #
2020
#########
21-
.postinstall.json
21+
2222

2323
# Directories #
2424
###############
@@ -70,9 +70,6 @@ tmp/
7070
*.tar
7171
*.zip
7272

73-
# Make an exception for compressed distributable files:
74-
!dist/*.gz
75-
7673
# Logs and databases #
7774
######################
7875
*.log

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,6 @@ For more information on the project, filing bug reports and feature requests, an
161161

162162
---
163163

164-
## License
165-
166-
See [LICENSE][stdlib-license].
167-
168-
169164
## Copyright
170165

171166
Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
@@ -197,8 +192,6 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
197192

198193
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
199194

200-
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/ndarray-base-assert-is-buffer-length-compatible/main/LICENSE
201-
202195
</section>
203196

204197
<!-- /.links -->

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"benchmark": "./benchmark",
1919
"doc": "./docs",
2020
"example": "./examples",
21+
"include": "./include",
2122
"lib": "./lib",
23+
"src": "./src",
2224
"test": "./test"
2325
},
2426
"types": "./docs/types",

0 commit comments

Comments
 (0)