Merge pull request #115 from oBusk/fix-culori-fail #43
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: Changelog | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| release: | |
| name: Changelog | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out branch | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | |
| - name: Set up Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| cache: 'npm' | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: npm ci | |
| env: | |
| CI: true | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| publish: npm run release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Publish to VSCode Marketplace | |
| if: steps.changesets.outputs.published == 'true' | |
| working-directory: ./packages/vscode-css-variables | |
| run: npx vsce publish -p ${{ secrets.VSCE_PAT }} | |
| - name: Publish to OpenVSX | |
| if: steps.changesets.outputs.published == 'true' | |
| working-directory: ./packages/vscode-css-variables | |
| run: npx ovsx publish -p ${{ secrets.OVSX_TOKEN }} |