Skip to content

Commit 53a9408

Browse files
authored
fix: vsce publish bad option (#177)
1 parent 50abd87 commit 53a9408

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ jobs:
7373
uses: ./.github/actions/move-artifacts
7474

7575
- name: Publish npm packages
76-
if: env.release_npm == 'true'
7776
env:
7877
NPM_TOKEN: ${{ secrets.RSLINT_NPM_TOKEN }}
7978
run: |

scripts/publish-marketplace.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ async function publish_all() {
3333
await $`rm -rf ./packages/vscode-extension/dist/rslint`;
3434
await $`rm -rf ./packages/vscode-extension/dist/rslint.exe`;
3535
await $`cp binaries/${os}-${arch}-rslint/${os}-${arch}-rslint ./packages/vscode-extension/dist/rslint`;
36+
await $`chmod +x ./packages/vscode-extension/dist/rslint`;
37+
await $`ls -lR ./packages/vscode-extension/dist`;
3638
const prereleaseFlag = prerelease ? ['--pre-release'] : [];
3739

3840
await $`cd packages/vscode-extension && pnpm vsce package --target ${os}-${arch} ${prereleaseFlag}`;
@@ -42,7 +44,7 @@ async function publish_all() {
4244
console.log(`Dry run: Skipping actual publish for ${os}-${arch}`);
4345
continue;
4446
}
45-
await $`cd packages/vscode-extension && pnpm ${marketplace} publish --target ${os}-${arch} --packagePath ./rslint-${os}-${arch}-${version}.vsix ${prereleaseFlag}`;
47+
await $`cd packages/vscode-extension && pnpm ${marketplace} publish --packagePath ./rslint-${os}-${arch}-${version}.vsix ${prereleaseFlag}`;
4648
console.log(`Finish Publishing v${version} for ${os}-${arch}.`);
4749
}
4850
}

0 commit comments

Comments
 (0)