Skip to content

Commit a2fbdee

Browse files
committed
Publish through Releases
1 parent 9e0248a commit a2fbdee

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,19 @@ jobs:
77
name: Release and publish
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
1111
with:
12-
fetch-depth: 1
12+
node-version: '16'
13+
- uses: actions/checkout@v2
14+
1315
- run: npm install
1416

15-
- run: npm install -g vsce
16-
- name: Create build
17-
run: npm run package
18-
19-
- name: Upload build
20-
uses: actions/upload-artifact@v2
21-
with:
22-
name: vscode-db2i-release-build
23-
path: ./*.vsix
17+
- run: npm install -g vsce ovsx
18+
19+
- name: Publish to Marketplace
20+
run: vsce publish -p $PUBLISHER_TOKEN
21+
env:
22+
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
23+
24+
- name: Publish to Open VSX
25+
run: npx ovsx publish -p ${{ secrets.OPENVSX_TOKEN }}

0 commit comments

Comments
 (0)