fix(language-core): include event modifiers in duplicate listener che… #324
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: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| auto-tag: | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'push' && startsWith(github.event.head_commit.message, 'v') | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check commit message and create tag | |
| run: | | |
| COMMIT_MSG=$(git log -1 --pretty=%B) | |
| if [[ $COMMIT_MSG =~ ^(v[0-9]+\.[0-9]+\.[0-9]+) ]]; then | |
| TAG_NAME="${BASH_REMATCH[1]}" | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git tag -a "$TAG_NAME" -m "Release $TAG_NAME" | |
| git push origin "$TAG_NAME" | |
| echo "✅ Tag $TAG_NAME created" | |
| else | |
| echo "❌ Invalid version format" | |
| exit 1 | |
| fi | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| publish-npm: | |
| permissions: | |
| contents: read | |
| id-token: write # to enable use of OIDC for npm provenance | |
| runs-on: ubuntu-latest | |
| needs: [auto-tag] | |
| if: github.event_name == 'workflow_dispatch' || success() | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| registry-url: "https://registry.npmjs.org/" | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| run: npm run build | |
| - name: Publish to NPM | |
| run: pnpm dlx --package @lerna-lite/cli --package @lerna-lite/publish lerna publish from-package --yes | |
| publish-vscode-marketplace: | |
| runs-on: ubuntu-latest | |
| needs: [auto-tag] | |
| if: github.event_name == 'workflow_dispatch' || success() | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Publish to VSCode Marketplace | |
| working-directory: extensions/vscode | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| run: pnpm dlx @vscode/vsce publish | |
| publish-open-vsx: | |
| runs-on: ubuntu-latest | |
| needs: [auto-tag] | |
| if: github.event_name == 'workflow_dispatch' || success() | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Publish to Open VSX | |
| working-directory: extensions/vscode | |
| env: | |
| OVSX_PAT: ${{ secrets.OVSX_PAT }} | |
| run: pnpm dlx ovsx publish |