fix menuitel snippet layout #384
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: | |
| branches: main | |
| paths: | |
| - 'svelte/**' | |
| - '.github/workflows/publish.yml' | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| registry-url: 'https://registry.npmjs.org' | |
| # Ensure npm 11+ is installed for OIDC provenance publishing | |
| # Using corepack avoids issues with corrupted npm in GitHub runners | |
| - name: Update npm via corepack | |
| run: | | |
| corepack enable npm | |
| corepack install -g npm@latest | |
| - run: npm ci | |
| working-directory: svelte | |
| - run: npm run package | |
| working-directory: svelte | |
| # Publish to npm | |
| - name: Publish to NPM registry | |
| working-directory: svelte | |
| run: npm publish |