Merge pull request #1 from picomet/changeset-release/main #3
This file contains 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: CD | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
version-or-publish: | |
name: Version or Publish | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Changesets CLI | |
run: npm install @changesets/cli | |
- name: Create Version PR or Publish | |
uses: changesets/action@v1 | |
with: | |
version: npm run v | |
publish: npm run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OVSX_PAT: ${{ secrets.OVSX_PAT }} | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} |