Skip to content

Commit aa00ca2

Browse files
committed
test publishing to npm
1 parent a4ff083 commit aa00ca2

File tree

8 files changed

+102
-138
lines changed

8 files changed

+102
-138
lines changed

.github/workflows/release.yml

+9
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,12 @@ jobs:
3232
OVSX_PAT: ${{ secrets.OVSX_PAT }}
3333
# optional
3434
EXTENSION_ICON: ${{ secrets.EXTENSION_ICON }}
35+
- name: Set publishing config
36+
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
37+
env:
38+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
39+
- run: node typescript/npm/beforePublish.mjs
40+
- run: pnpm publish --access public
41+
working-directory: typescript
42+
env:
43+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
"watch-plugin": "node buildTsPlugin.mjs --watch",
132132
"build": "tsc && tsc -p typescript --noEmit && vscode-framework build && pnpm build-plugin",
133133
"build-plugin": "node buildTsPlugin.mjs && node buildTsPlugin.mjs --browser",
134+
"build-plugin:npm": "tsc -p typescript/tsconfig.npm.json",
134135
"lint": "eslint {src/**,typescript/src/**}",
135136
"test": "pnpm test-plugin --run && pnpm integration-test",
136137
"test-plugin": "vitest --globals --dir typescript/test/ --environment ts-plugin",
@@ -158,7 +159,10 @@
158159
"vite": "^4.1.1",
159160
"vitest": "^0.34.6",
160161
"vitest-environment-ts-plugin": "./vitest-environment-ts-plugin",
161-
"vscode-manifest": "^0.0.4"
162+
"vscode-manifest": "^0.0.4",
163+
"chokidar": "^3.5.3",
164+
"chokidar-cli": "^3.0.0",
165+
"npm-run-all": "^4.1.5"
162166
},
163167
"pnpm": {
164168
"overrides": {
@@ -180,8 +184,6 @@
180184
"@zardoy/vscode-utils": "^0.0.52",
181185
"chai": "^4.3.6",
182186
"change-case": "^4.1.2",
183-
"chokidar": "^3.5.3",
184-
"chokidar-cli": "^3.0.0",
185187
"delay": "^5.0.0",
186188
"escape-string-regexp": "^5.0.0",
187189
"eslint": "^8.56.0",
@@ -191,8 +193,6 @@
191193
"lodash.get": "^4.4.2",
192194
"lodash.throttle": "^4.1.1",
193195
"mocha": "^10.0.0",
194-
"modify-json-file": "^1.2.2",
195-
"npm-run-all": "^4.1.5",
196196
"path-browserify": "^1.0.1",
197197
"pluralize": "github:plurals/pluralize#36f03cd2d573fa6d23e12e1529fa4627e2af74b4",
198198
"rambda": "^7.2.1",

0 commit comments

Comments
 (0)