diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b76e5b6..6e11702 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,10 +7,21 @@ jobs: name: Release and publish runs-on: ubuntu-latest steps: + - uses: actions/setup-node@v2 + with: + node-version: '16' + registry-url: 'https://registry.npmjs.org' + - uses: actions/checkout@v2 + - run: npm install - - uses: lannonbr/vsce-action@master - with: - args: "publish -p $PUBLISHER_TOKEN" + + - run: npm install -g vsce ovsx + + - name: Publish to Marketplace + run: vsce publish -p $PUBLISHER_TOKEN env: - PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }} \ No newline at end of file + PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }} + + - name: Publish to Open VSX + run: npx ovsx publish -p ${{ secrets.OPENVSX_TOKEN }}