Skip to content

Commit

Permalink
Address Prerelease & Node update (#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
ooeygui authored Apr 10, 2023
1 parent 773e8a6 commit de2f60e
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 18.x
- run: npm install
archive-vsix:
runs-on: ubuntu-latest
Expand All @@ -36,9 +36,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 18.x
- run: npm install
- name: Build VSIX package
run: |
Expand All @@ -57,15 +57,27 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14.x
node-version: 18.x
- run: npm install
- name: Build VSIX package
run: |
npm install vsce -g
npm run compile
- name: Build Release VSIX package
if: '!github.event.release.prerelease'
run: |
vsce package -o vscode-ros.vsix
- name: Publish VSIX package
- name: Build Prerelease VSIX package
if: 'github.event.release.prerelease'
run: |
vsce package --pre-release -o vscode-ros.vsix
- name: Publish Release VSIX package
if: '!github.event.release.prerelease'
run: |
vsce publish -p ${{secrets.MARKETPLACE_PUBLISHER_TOKEN}}
- name: Publish Prerelease VSIX package
if: 'github.event.release.prerelease'
run: |
vsce publish --pre-release -p ${{secrets.MARKETPLACE_PUBLISHER_TOKEN}}

0 comments on commit de2f60e

Please sign in to comment.