Skip to content

Commit

Permalink
add release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bugzpodder committed Oct 29, 2023
1 parent 4d0f0fa commit 7d2ba64
Show file tree
Hide file tree
Showing 20 changed files with 2,463 additions and 63 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- run: yarn install
- name: Install, build, and upload your site
uses: withastro/action@v0
with:
Expand Down
15 changes: 15 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"git": {
"requireBranch": "main"
},
"hooks": {
"before:init": ["git pull", "yarn format"],
"after:bump": "auto-changelog -p"
},
"github": {
"release": true
},
"npm": {
"publish": true
}
}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
### Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### 0.5.0

- find_imports: only list missing packages [`#1`](https://github.com/bugzpodder/pysandbox/pull/1)
- docs [`a4037bf`](https://github.com/bugzpodder/pysandbox/commit/a4037bf5ba4964a225144712e70c91fb0bcc36db)
- Add pysandbox [`8d441fb`](https://github.com/bugzpodder/pysandbox/commit/8d441fbe15170e03a9a35b1c5c0278c80c3e98e1)
- main implementation [`bd813d6`](https://github.com/bugzpodder/pysandbox/commit/bd813d6c7d4dd63bfec21a1cf4c29971b7968574)
21 changes: 0 additions & 21 deletions RELEASES.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"@codemirror/lang-python": "^6.1.3",
"astro": "^3.0.6",
"codemirror": "^6.0.1",
"pysandbox": "^0.5.0"
"pysandbox": "link:.."
},
"devDependencies": {
"prettier": "^3.0.3",
Expand Down
15 changes: 6 additions & 9 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3120,9 +3120,9 @@ plain-tag@^0.1.3:
integrity sha512-yyVAOFKTAElc7KdLt2+UKGExNYwYb/Y/WE9i+1ezCQsJE8gbKSjewfpRqK2nQgZ4d4hhAAGgDCOcIZVilqE5UA==

polyscript@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/polyscript/-/polyscript-0.5.0.tgz#1c703efd427cc511b1c1b72b097834b548fef10a"
integrity sha512-PkClZsFSBDJpSkRIqv5CT0iOu97MZ0D3dQntjveM7I79m8/mKr6RlgEZQIhy9nHROItqR6QBIeIUFTTESzRJFA==
version "0.5.3"
resolved "https://registry.yarnpkg.com/polyscript/-/polyscript-0.5.3.tgz#1c15d82a92afefa2cde1de945fd3a53088c4ef45"
integrity sha512-gzxFrf3QPKJk32oooCxukdEgvrOyeXPfcgE+gJ3o3/IF5xW6TUvgTp5A14fX14lVOxxcEVvbcF3+Hvc9VHXRGg==
dependencies:
"@ungap/structured-clone" "^1.2.0"
"@ungap/with-resolvers" "^0.1.0"
Expand Down Expand Up @@ -3218,12 +3218,9 @@ pump@^3.0.0:
end-of-stream "^1.1.0"
once "^1.3.1"

pysandbox@^0.5.0:
version "0.5.0"
resolved "https://registry.yarnpkg.com/pysandbox/-/pysandbox-0.5.0.tgz#7e586f299af7cde52ad08b2cbbb228d656ed72fb"
integrity sha512-FR6fhkIX2O4kfLCc+zqE3oR5DTopi74l4lkwtz3aEYAjEbVSx2dqoRjItudgXu1aYp2YPNSbjEIae+GkRF4L9w==
dependencies:
polyscript "^0.5.0"
"pysandbox@link:..":
version "0.0.0"
uid ""

queue-microtask@^1.2.2:
version "1.2.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/MainThread/autoimport.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/MainThread/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/MainThread/matplotlib-restricted.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/MainThread/matplotlib.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/MainThread/restricted.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/MainThread/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/Worker/autoimport.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/Worker/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/Worker/matplotlib-restricted.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/Worker/matplotlib.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/Worker/restricted.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion examples/Worker/simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script type="importmap">
{
"imports": {
"polyscript": "https://esm.sh/polyscript@0.5.0"
"polyscript": "/node_modules/polyscript/core.js"
}
}
</script>
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,23 @@
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"format": "prettier -w src",
"format:js": "prettier -w src",
"format:py": "black src",
"format": "yarn format:js && yarn format:py",
"serve": "python serve.py",
"prepare": "husky install",
"prepublish": "yarn build",
"release": "release-it",
"test": "playwright test"
},
"devDependencies": {
"@playwright/test": "^1.38.1",
"auto-changelog": "^2.4.0",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"playwright": "^1.38.1",
"prettier": "^3.0.3",
"release-it": "^16.2.1",
"tsup": "^7.2.0",
"typescript": "^5.2.2"
},
Expand Down
Loading

0 comments on commit 7d2ba64

Please sign in to comment.