diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1b41fc3..eead9b9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,3 +22,18 @@ jobs: - run: npm whoami; npm --ignore-scripts publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} + - uses: actions/upload-pages-artifact@v3 + with: + path: ./examples + publish-page: + runs-on: ubuntu-latest + needs: publish-npm + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v4 diff --git a/examples/index.html b/examples/index.html index 46ac075..161173e 100644 --- a/examples/index.html +++ b/examples/index.html @@ -2,7 +2,7 @@ example-element examples - +
diff --git a/package.json b/package.json index e656211..3317000 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "template-element", + "name": "@htmx/template-element", "version": "1.0.0", "description": "A custom element for adding a toolbar to a textarea for markdown editing.", "repository": "zeiss/template-element",