Skip to content

Commit 4431722

Browse files
committed
chore: add env-cmd to project
1 parent 2ee7a3f commit 4431722

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

.env.template

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
OVS_PAT=

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ Just clone the [GitHub repository](https://github.com/bbenoist/vscode-nix) under
6767

6868
## Releasing a new version
6969

70+
* fill `.env` from `.env.template`
71+
7072
```sh
71-
export OVS_PAT=...
7273
yarn release
7374
```
7475

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
"@types/vscode": "*",
9393
"@typescript-eslint/eslint-plugin": "^4.26.0",
9494
"@typescript-eslint/parser": "^4.26.1",
95+
"env-cmd": "^10.1.0",
9596
"esbuild": "^0.12.21",
9697
"eslint": "^7.21.0",
9798
"eslint-config-prettier": "^8.1.0",
@@ -112,7 +113,7 @@
112113
"postinstall": "husky install",
113114
"release": "yarn install && yarn lint && yarn build && standard-version && git push --follow-tags && yarn run publish",
114115
"package": "vsce package",
115-
"publish": "yarn package && vsce publish && ovsx publish --pat $OVS_PAT",
116+
"publish": "yarn package && vsce publish && env-cmd --expand-envs ovsx publish --pat $OVS_PAT",
116117
"lint": "eslint --ext ts src"
117118
},
118119
"dependencies": {

yarn.lock

+13
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,11 @@ command-exists@^1.2.9:
691691
resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69"
692692
integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==
693693

694+
commander@^4.0.0:
695+
version "4.1.1"
696+
resolved "https://registry.yarnpkg.com/commander/-/commander-4.1.1.tgz#9fd602bd936294e9e9ef46a3f4d6964044b18068"
697+
integrity sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==
698+
694699
commander@^6.1.0:
695700
version "6.2.1"
696701
resolved "https://registry.yarnpkg.com/commander/-/commander-6.2.1.tgz#0792eb682dfbc325999bb2b84fddddba110ac73c"
@@ -1076,6 +1081,14 @@ entities@~2.0.0:
10761081
resolved "https://registry.yarnpkg.com/entities/-/entities-2.0.3.tgz#5c487e5742ab93c15abb5da22759b8590ec03b7f"
10771082
integrity sha512-MyoZ0jgnLvB2X3Lg5HqpFmn1kybDiIfEQmKzTb5apr51Rb+T3KdmMiqa70T+bhGnyv7bQ6WMj2QMHpGMmlrUYQ==
10781083

1084+
env-cmd@^10.1.0:
1085+
version "10.1.0"
1086+
resolved "https://registry.yarnpkg.com/env-cmd/-/env-cmd-10.1.0.tgz#c7f5d3b550c9519f137fdac4dd8fb6866a8c8c4b"
1087+
integrity sha512-mMdWTT9XKN7yNth/6N6g2GuKuJTsKMDHlQFUDacb/heQRRWOTIZ42t1rMHnQu4jYxU1ajdTeJM+9eEETlqToMA==
1088+
dependencies:
1089+
commander "^4.0.0"
1090+
cross-spawn "^7.0.0"
1091+
10791092
error-ex@^1.3.1:
10801093
version "1.3.2"
10811094
resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf"

0 commit comments

Comments
 (0)