Support @keyframes (#218)
#104
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: | |
| inputs: | |
| force_publish_extensions: | |
| description: 'Force publish editor extensions even if no changesets are present' | |
| type: boolean | |
| required: true | |
| default: false | |
| permissions: | |
| id-token: write # Required for provenance | |
| 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: 22 | |
| 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_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NPM_CONFIG_PROVENANCE: true | |
| - run: npx vsce publish --no-git-tag-version --skip-duplicate | |
| if: steps.changesets.outputs.published == 'true' || github.event.inputs.force_publish_extensions == 'true' | |
| working-directory: packages/vscode | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| - run: npx ovsx publish --skip-duplicate | |
| if: steps.changesets.outputs.published == 'true' || github.event.inputs.force_publish_extensions == 'true' | |
| working-directory: packages/vscode | |
| env: | |
| OVSX_PAT: ${{ secrets.OVSX_PAT }} |