Skip to content

Commit

Permalink
ci: publish from workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
marabesi committed Aug 10, 2024
1 parent 9d296d4 commit aba10b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 13 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,11 @@ jobs:
- name: npm install
run: |
npm install
npm run clean
npm i --workspaces
npm run compile --workspaces
- name: npm build
run: |
ls -la node_modules/@smelly
npm run vscode:prepublish --workspace=vscode
- name: npm test
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/publish_ovsx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ jobs:
deploy:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./vscode

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- run: npm install
- run: |
npm i --workspaces
npm run compile --workspaces
npm install -g vsce
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/publish_vsce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@ jobs:
deploy:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./vscode

steps:
- uses: actions/checkout@v2
- name: Use Node.js 18x
uses: actions/setup-node@v1
with:
node-version: 18.x
- run: |
npm install
npm i --workspaces
npm run compile --workspaces
npm install -g vsce
npx vsce publish -p ${{ secrets.VSCE_TOKEN }}

0 comments on commit aba10b4

Please sign in to comment.