Add wildcardDirectories in CMKConfig (#262)
#145
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 | |
| workflow_dispatch: | |
| permissions: | |
| id-token: write # Required for npm trusted publishing with OIDC | |
| contents: write # Required for changesets/action | |
| pull-requests: write # Required for changesets/action | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| release: | |
| name: Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - run: npm install | |
| - run: npm run build | |
| - name: set release variables | |
| run: echo "date=$(date -u +'%Y-%m-%dT%H:%MZ')" >> $GITHUB_ENV | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: dotansimha/changesets-action@069996e9be15531bd598272996fa23853d61590e # v1.5.2 | |
| with: | |
| version: npm run version | |
| publish: npx @changesets/cli publish | |
| createGithubReleases: aggregate | |
| githubReleaseName: Release ${{ env.date }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_CONFIG_PROVENANCE: true | |
| - run: npx @vscode/vsce publish --no-git-tag-version --skip-duplicate | |
| if: steps.changesets.outputs.hasChangesets == 'false' | |
| working-directory: packages/vscode | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| - run: npx ovsx publish --skip-duplicate | |
| if: steps.changesets.outputs.hasChangesets == 'false' | |
| working-directory: packages/vscode | |
| env: | |
| OVSX_PAT: ${{ secrets.OVSX_PAT }} |