diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c7bf1481..e92f3185 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish (NPM & GPR) +name: Publish to NPM # publish only when package json has changed - assuming version upgrade on: @@ -8,8 +8,6 @@ on: jobs: publish: - # Don't run just after creating repo from template - # Also avoid running after merging set-up PR runs-on: ubuntu-latest permissions: packages: write @@ -33,37 +31,15 @@ jobs: # fail and not publish if any of the unit tests are failing - name: Test run: pnpm test - - name: Update topics and Publish to NPM - run: pnpm build && pnpm publish-package && cd dist && node ../scope.js && npm publish --access public + - name: Create release and Publish to NPM + run: pnpm build && pnpm publish-package && node scope.js && pnpm publish-package env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} TOKEN: ${{ secrets.GITHUB_TOKEN }} OWNER: ${{ github.event.repository.owner.login }} REPO: ${{ github.event.repository.name }} - - uses: actions/setup-node@v3 - with: - registry-url: https://npm.pkg.github.com/ - - name: Publish to GitHub Public Repository - run: pnpm publish-package - continue-on-error: true - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Publish lite version - - uses: actions/setup-node@v3 - with: - node-version: 18 - registry-url: https://registry.npmjs.org - - run: node lite.js && pnpm build && pnpm publish-package && cd dist && node ../scope.js && sleep 2s && npm publish --access public + - run: node lite.js && pnpm build && pnpm publish-package && node scope.js && pnpm publish-package env: NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} - TOKEN: ${{ secrets.GITHUB_TOKEN }} - OWNER: ${{ github.event.repository.owner.login }} - REPO: ${{ github.event.repository.name }} - - uses: actions/setup-node@v3 - with: - registry-url: https://npm.pkg.github.com/ - - name: Publish to GitHub Public Repository - run: pnpm publish-package - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/functions/client_color_switch_color_switch.ColorSwitch.html b/docs/functions/client_color_switch_color_switch.ColorSwitch.html index 10e9fc99..4c6d626e 100644 --- a/docs/functions/client_color_switch_color_switch.ColorSwitch.html +++ b/docs/functions/client_color_switch_color_switch.ColorSwitch.html @@ -4,4 +4,4 @@
custom size
<ColorSwitch size={20} />
-Generated using TypeDoc