Skip to content

Commit c11f7af

Browse files
committed
chore: update publish action
1 parent 1c3b8d4 commit c11f7af

File tree

4 files changed

+33
-26
lines changed

4 files changed

+33
-26
lines changed

Diff for: .github/workflows/release.yml

+18-13
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,24 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
1314
with:
14-
persist-credentials: false
15-
- uses: actions/setup-node@v2
15+
node-version: '20'
16+
registry-url: 'https://registry.npmjs.org'
17+
- uses: pnpm/action-setup@v2
1618
with:
17-
node-version: '16'
19+
version: 8
1820
- name: Install deps
19-
run: yarn
20-
- name: Publish to VSCE
21-
run: npx vsce publish -p $VSCE_TOKEN
22-
env:
23-
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
24-
- name: Publish to Open VSX
25-
run: npx ovsx publish -p $OVSX_TOKEN
26-
env:
27-
OVSX_TOKEN: ${{ secrets.OVSX_TOKEN }}
21+
run: pnpm i
22+
- name: Publish to Open VSX Registry
23+
uses: HaaLeo/publish-vscode-extension@v1
24+
with:
25+
pat: ${{ secrets.OVSX_TOKEN }}
26+
dependencies: false
27+
- name: Publish to Visual Studio Marketplace
28+
uses: HaaLeo/publish-vscode-extension@v1
29+
with:
30+
pat: ${{ secrets.VSCE_TOKEN }}
31+
dependencies: false
32+
registryUrl: https://marketplace.visualstudio.com

Diff for: .gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
out
22
dist
3-
temp
43
node_modules
54
.vscode-test/
65
*.vsix

Diff for: .husky/pre-push

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn lint
4+
npm run lint

Diff for: .vscodeignore

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
.vscode/**
2-
.vscode-test/**
3-
out/test/**
4-
src/**
5-
.gitignore
6-
.yarnrc
7-
vsc-extension-quickstart.md
8-
**/tsconfig.json
9-
**/.eslintrc.json
101
**/*.map
112
**/*.ts
12-
node_modules/**
13-
rollup.conf.js
143
gulpfile.js
4+
pnpm-lock.yaml
5+
rollup.conf.mjs
6+
src/**
7+
tsconfig.json
8+
.babelrc.js
9+
.browserslistrc
10+
.editorconfig
11+
.eslintignore
12+
.eslintrc.js
13+
.github/**
14+
.gitignore
15+
.husky/**
16+
.npmrc
17+
.vscode/**

0 commit comments

Comments
 (0)