Skip to content

Update main.yml

Update main.yml #2

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'npm'
- run: npm ci
working-directory: ./extension
- run: npm i -g vsce
working-directory: ./extension
- run: vsce package
working-directory: ./extension
- name: Upload a Build Artifact
working-directory: ./extension
uses: actions/[email protected]

Check failure on line 32 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Node.js CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 32, Col: 7): Unexpected value 'uses' .github/workflows/main.yml (Line: 33, Col: 7): Unexpected value 'with'

Check failure on line 32 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / Node.js CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yml (Line: 32, Col: 7): Unexpected value 'uses' .github/workflows/main.yml (Line: 33, Col: 7): Unexpected value 'with'
with:
path: '*.vsix'