name: 🔄 Update @wxt-dev/browser on: workflow_dispatch: schedule: - cron: '0 0 * * *' # Every day at midnight permissions: contents: read jobs: sync: name: 'Sync with @types/chrome' runs-on: ubuntu-latest if: github.repository_owner == 'wxt-dev' permissions: contents: write # Push version changes id-token: write # OIDC for NPM publishing steps: - name: Checkout uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: ssh-key: ${{ secrets.DEPLOY_KEY }} - name: Setup uses: ./.github/actions/setup with: installArgs: --ignore-scripts - name: Generate Latest Code working-directory: packages/browser run: bun run gen - name: Run Checks working-directory: packages/browser run: bun run check - name: Commit Changes id: commit uses: stefanzweifel/git-auto-commit-action@4a55954c782fc1ea30b9056cd3e7a2b40ca8887d # v7.2.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: commit_message: 'fix: Upgrade `@wxt-dev/browser` to latest `@types/chrome` version' - name: Publish to NPM if: steps.commit.outputs.changes_detected == 'true' working-directory: packages/browser run: | bun pm pack sudo npm i -g npm@latest npm publish *.tgz