Release #7
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*' | |
| jobs: | |
| release: | |
| if: github.repository == 'nette/vite-plugin' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| registry-url: 'https://registry.npmjs.org' | |
| scope: '@nette' | |
| - name: Install dependencies | |
| run: npm ci --ignore-scripts # skip post-install, malicious script could steal NODE_AUTH_TOKEN | |
| - name: Verify authentication | |
| run: npm whoami | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Debug npm logs on failure | |
| if: failure() | |
| run: | | |
| echo "=== NPM Debug Logs ===" | |
| find /home/runner/.npm/_logs -name "*.log" -type f | head -5 | while read logfile; do | |
| echo "--- Contents of $logfile ---" | |
| cat "$logfile" | |
| echo | |
| done | |
| echo "=== NPM Configuration ===" | |
| npm config list | |
| echo "=== Environment ===" | |
| env | grep -i npm || true |