Skip to content

Commit

Permalink
Major Change Interface: release as "next"
Browse files Browse the repository at this point in the history
  • Loading branch information
omrilotan committed Dec 18, 2023
1 parent a0fdadd commit a7b9a37
Show file tree
Hide file tree
Showing 79 changed files with 1,201 additions and 1,683 deletions.
73 changes: 32 additions & 41 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ workflows:
matrix:
parameters:
image:
- cimg/node:12.22
- cimg/node:14.18
- cimg/node:16.15
- cimg/node:18.4
- cimg/node:19.6
- cimg/node:18.19
- cimg/node:lts
- cimg/node:current
requires:
Expand All @@ -44,31 +40,29 @@ workflows:
filters:
branches:
only:
- main
- next
- pages:
context: globalenv
requires:
- publish
# scheduled:
# jobs:
# - periodic
# triggers:
# - schedule:
# cron: "0 9 * * 1"
# filters:
# branches:
# only:
# - main
scheduled:
jobs:
- periodic
triggers:
- schedule:
cron: "0 9 * * 1"
filters:
branches:
only:
- next
jobs:
build:
docker:
- image: cimg/node:lts-browsers
- image: cimg/node:lts
steps:
- checkout
- run: git submodule update --init --recursive
- run: node -v
- run: npm i
- browsers
- run: npm run build
- persist_to_workspace:
root: .
Expand All @@ -77,18 +71,24 @@ jobs:
tests:
working_directory: ~/project
docker:
- image: cimg/node:lts-browsers
- image: cimg/node:lts
steps:
- run: node -v
- attach_workspace:
at: .
- run: npm run lint
- run: npm run sort
- run: git diff --quiet || exit 1
- run: npm run remark
- run: npm run format
- run:
name: Push autofixes
command: |
if [ "$(git diff --quiet && echo 0 || echo $?)" -gt 0 ]; then
git config --global user.email [email protected] --replace-all
git config --global user.name omrilotan --replace-all
git commit -am "😎 Autofix"
git remote set-url origin https://$CIRCLE_USERNAME:[email protected]/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME.git
git push -u origin HEAD:${CIRCLE_BRANCH}
exit 1
fi
- run: npm t
- run: npm run jest
- run: npm run ts
compatibility:
parameters:
image:
Expand All @@ -102,19 +102,11 @@ jobs:
- run: node -v
- attach_workspace:
at: .
- run: npm run symlink
- run: npm run cjs
- when:
condition:
matches:
pattern: "cimg/node:1[2-8]-.*"
value: << parameters.image >>
steps:
- run: npm run esm
- run: npm t
publish:
working_directory: ~/project
docker:
- image: cimg/node:lts-browsers
- image: cimg/node:lts
steps:
- checkout
- run:
Expand All @@ -132,7 +124,7 @@ jobs:
- attach_workspace:
at: .
- browsers
- run: npm publish
- run: npm publish --tag next
- run:
name: Add git tag
command: git tag -a "v$(cat package.json | jq ".version" -r)" -m "$(git show -s --format=%B | tr -d '\n')"
Expand All @@ -151,19 +143,18 @@ jobs:
command: cp -r .circleci docs/
- run:
name: Post to gh-pages
command: curl ci-cd.net/v1/gh/pages | bash -s docs/.
command: echo ./scripts/gh-pages/procedure.sh | bash -s
periodic:
working_directory: ~/project
docker:
- image: cimg/node:lts
steps:
- checkout
- run: git submodule update --init --recursive
- run: npm i
- run: |
npm run spec || curl --request POST \
npm t || curl --request POST \
--url https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/issues \
--header 'authorization: Bearer ${GITHUB_TOKEN}' \
--header 'authorization: Bearer ${ISBOT_ISSUE_TOKEN}' \
--header 'content-type: application/json' \
--data '{
"title": "Automated issue for failing periodic tests",
Expand Down
7 changes: 5 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# EditorConfig is awesome: http://EditorConfig.org
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
indent_style = space
indent_style = tab
tab_width = 2

[*.{yml,json,md}]
indent_size = 2
indent_style = space
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

4 changes: 1 addition & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
* text eol=lf

.github/**/* linguist-vendored
scripts/* linguist-vendored
page/* linguist-vendored
fixtures/downloads/* linguist-vendored
11 changes: 6 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
node_modules
/.cache
/docs

# Auomatically built files
/src/pattern.ts
/index*
/*.d.ts
/fixtures/index.json
dist.js
/AUTHORS
/index.*
!/index.d.ts
/docs
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

14 changes: 0 additions & 14 deletions .npmignore

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
package-lock=false
access=public
user-agent=isbot
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.*
/index*
src/pattern.ts
5 changes: 0 additions & 5 deletions .remarkrc

This file was deleted.

34 changes: 0 additions & 34 deletions .rollup.js

This file was deleted.

Loading

0 comments on commit a7b9a37

Please sign in to comment.