refactor(core, ts-plugin, codegen): move token name validation from c… #291
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-24.04-arm | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: voidzero-dev/setup-vp@56918a6d0c629c55ae8b88826a7d47fda85769ee # v1.9.0 | |
| with: | |
| node-version: 26 | |
| cache: true | |
| - run: vp 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: vp run version | |
| publish: vp exec changeset publish | |
| createGithubReleases: aggregate | |
| githubReleaseName: Release ${{ env.date }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_CONFIG_PROVENANCE: true | |
| - run: vp exec 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: vp exec ovsx publish --skip-duplicate | |
| if: steps.changesets.outputs.hasChangesets == 'false' | |
| working-directory: packages/vscode | |
| env: | |
| OVSX_PAT: ${{ secrets.OVSX_PAT }} |