Skip to content

Merge pull request #75 from REST-API-Client/fix/copy-icon-test-syntax #32

Merge pull request #75 from REST-API-Client/fix/copy-icon-test-syntax

Merge pull request #75 from REST-API-Client/fix/copy-icon-test-syntax #32

Workflow file for this run

name: Release and publish
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install the dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Bump version
run: |
npm version patch -m "chore: release v%s [skip ci]"
- name: Push version bump and tag
run: git push origin main --follow-tags
- name: Install vsce
run: npm i -g @vscode/vsce
- name: Package extension
run: vsce package
- name: Publish to marketplace
run: vsce publish -p "$PERSONAL_ACCESS_TOKEN"
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.VSCE_PAT }}