Merge pull request #75 from REST-API-Client/fix/copy-icon-test-syntax #32
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 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 }} |