diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d16db22..e302884 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,39 +11,62 @@ permissions: id-token: write jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - - uses: pnpm/action-setup@v2 - with: - version: 8 - - run: pnpm install - - run: pnpm run test - - docs: - runs-on: ubuntu-latest - needs: test - if: github.ref == 'refs/heads/main' - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - - uses: pnpm/action-setup@v2 - with: - version: 8 - - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.2 - with: - install_command: pnpm install - build_command: pnpm run build && pnpm run build-storybook - path: storybook-static - - release-please: - runs-on: ubuntu-latest - needs: test - if: github.ref == 'refs/heads/main' - steps: - - uses: google-github-actions/release-please-action@v4 - with: - release-type: node - token: ${{ secrets.PAT }} \ No newline at end of file + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - run: pnpm install + - run: pnpm run test + + docs: + runs-on: ubuntu-latest + needs: test + if: github.ref == 'refs/heads/main' + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.2 + with: + install_command: pnpm install + build_command: pnpm run build && pnpm run build-storybook + path: storybook-static + + release-please: + runs-on: ubuntu-latest + needs: test + if: github.ref == 'refs/heads/main' + steps: + - uses: google-github-actions/release-please-action@v4 + id: release + with: + release-type: node + token: ${{ secrets.PAT }} + + - uses: actions/checkout@v4 + if: ${{ steps.release.outputs.release_created }} + + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: 'https://registry.npmjs.org' + if: ${{ steps.release.outputs.release_created }} + + - uses: pnpm/action-setup@v2 + if: ${{ steps.release.outputs.release_created }} + + - run: | + pnpm install + pnpm build + if: ${{ steps.release.outputs.release_created }} + + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + if: ${{ steps.release.outputs.release_created }} diff --git a/package.json b/package.json index 2579305..538ca90 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "didroom-components", + "name": "@didroom/components", "version": "1.2.1", "description": "Stencil Component Starter", "main": "dist/index.cjs.js", diff --git a/src/index.html b/src/index.html index 953df2a..8aa0014 100644 --- a/src/index.html +++ b/src/index.html @@ -22,7 +22,7 @@
Dark mode -