Bump cross-spawn from 7.0.3 to 7.0.6 #28
Workflow file for this run
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: Lint and build. Publish on tag/release creation | |
on: [ push ] | |
permissions: | |
contents: write | |
jobs: | |
lint_build_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run Cimon (eBPF) | |
uses: cycodelabs/cimon-action@v0 | |
with: | |
client-id: ${{ secrets.CIMON_CLIENT_ID }} | |
secret: ${{ secrets.CIMON_SECRET }} | |
allowed-hosts: > | |
registry.yarnpkg.com | |
marketplace.visualstudio.com | |
update.code.visualstudio.com | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: | | |
yarn ci | |
yarn global add @vscode/vsce ovsx | |
- name: Code Linting | |
run: yarn lint | |
- name: Build extension | |
run: vsce package | |
- name: Upload extension package to artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cycode-extension | |
path: "*.vsix" | |
if-no-files-found: error | |
- name: Publish extension to marketplaces | |
# it runs on tag creation only which starts with 'v' (e.g., v1.0.0) | |
if: startsWith(github.ref, 'refs/tags/v') | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} | |
OVSX_PAT: ${{ secrets.OPEN_VSX_MARKETPLACE_TOKEN }} | |
run: | | |
vsce publish | |
ovsx publish | |
- name: Publish extension to GitHub Release | |
# it runs on tag creation only which starts with 'v' (e.g., v1.0.0) | |
if: startsWith(github.ref, 'refs/tags/v') | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
file: "*.vsix" | |
file_glob: true | |
tag: ${{ github.ref }} | |
overwrite: true |