fix: use softprops/action-gh-release and add contents write permission #5
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| with: | |
| version: 8 | |
| - name: Install dependencies | |
| run: | | |
| cd claude-devtools-host | |
| pnpm install --no-frozen-lockfile | |
| - name: Package Chrome Extension | |
| run: | | |
| cd chrome-devtools-extension | |
| zip -r ../claude-devtools-extension-${{ github.ref_name }}.zip . \ | |
| -x "node_modules/*" "*.log" ".DS_Store" | |
| - name: Publish to npm | |
| run: | | |
| cd claude-devtools-host | |
| npm publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| name: Claude DevTools ${{ github.ref_name }} | |
| body: | | |
| ## Installation | |
| ### Host Server | |
| ```bash | |
| npm install -g @alexstrnik/claude-devtools@${{ github.ref_name }} | |
| ``` | |
| ### Chrome Extension | |
| 1. Download the extension zip below | |
| 2. Extract to a folder | |
| 3. Load unpacked in Chrome Extensions | |
| ## Changes | |
| See commits since last release. | |
| files: | | |
| claude-devtools-extension-${{ github.ref_name }}.zip | |
| draft: false | |
| prerelease: false |