Crx monkey auto npm publish #18
Workflow file for this run
This file contains 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: Crx monkey auto npm publish | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
env: | |
FILE_PATTERN: 'packages/**/*.{ts,tsx,js,jsx}' | |
jobs: | |
publish: | |
name: Publish crx-monkey | |
runs-on: ubuntu-latest | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Setup Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Install dependencies | |
run: | | |
bun install | |
bun install --cwd packages/crx-monkey | |
- name: Build crx-monkey | |
run: bun run build:crx | |
- name: Publish | |
run: | | |
cd packages/crx-monkey | |
npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |