Skip to content

Commit

Permalink
BREAKING CHANGE: modules are moved to package root
Browse files Browse the repository at this point in the history
Now, you can import `mazes101/boards/rectangular` instead of `mazes101/dist/boards/rectangular`.
  • Loading branch information
nmanumr committed May 10, 2021
1 parent ca11c53 commit f2b375a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdir site && cp -r demos/ site/
- run: mkdocs gh-deploy --force --dirty
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: mkdir dist && cp package.json dist/
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdir site && cp -r demos/ site/
- run: mkdocs gh-deploy --force --dirty
3 changes: 3 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pkgRoot": "dist"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"build": "rm -rf dist && ttsc && rollup --config",
"watch": "ttsc --watch",
"prepublishOnly": "npm run build",
"postbuild": "cp package.json dist",
"semantic-release": "semantic-release"
},
"repository": {
Expand Down

0 comments on commit f2b375a

Please sign in to comment.