fix: close WebSocket on pagehide to support bfcache (#162) #70
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish package to NPM | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: '.nvmrc' | |
| registry-url: https://registry.npmjs.org/ | |
| - run: corepack enable | |
| - run: yarn | |
| - run: yarn lint-test | |
| - run: yarn build:all | |
| - run: yarn workspace @hawk.so/javascript npm publish --access=public | |
| env: | |
| YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| notify: | |
| needs: publish | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Get package info | |
| id: package | |
| uses: codex-team/action-nodejs-package-info@v1 | |
| with: | |
| path: packages/javascript | |
| - name: Send a message | |
| uses: codex-team/action-codexbot-notify@v1 | |
| with: | |
| webhook: ${{ secrets.CODEX_BOT_WEBHOOK_HAWK }} | |
| message: '📦 [${{ steps.package.outputs.name }}](${{ steps.package.outputs.npmjs-link }}) ${{ steps.package.outputs.version }} was published' | |
| parse_mode: 'markdown' | |
| disable_web_page_preview: true |