From b3e9841438b38c3459577a90d8407bab5fa4f703 Mon Sep 17 00:00:00 2001 From: andersnm Date: Sun, 16 Jun 2024 13:12:01 +0200 Subject: [PATCH] Release tags to vscode marketplace --- .github/workflows/release-tag.yml | 22 +++++++++++++++++++ README.md | 3 +++ package.json | 1 + packages/vscode-sourcemap-helper/package.json | 1 + 4 files changed, 27 insertions(+) create mode 100644 .github/workflows/release-tag.yml diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml new file mode 100644 index 0000000..2ecb9f6 --- /dev/null +++ b/.github/workflows/release-tag.yml @@ -0,0 +1,22 @@ +name: Release +on: + push: + tags: + - "*" +jobs: + Release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + - run: npm install + - run: npm run build + - run: npm run bundle + - run: xvfb-run -a npm run test + - run: npm run publish -- -p ${{ secrets.VS_MARKETPLACE_TOKEN }} + - uses: actions/upload-artifact@v4 + with: + name: vsix + path: packages/vscode-sourcemap-helper/sourcemap-helper-*.vsix diff --git a/README.md b/README.md index 82d2c2b..1870bf6 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,9 @@ npm run bundle # Create extension VSIX from bundle npm run vsce + +# Publish extension VSIX +npm run publish -- -p ${VSCE_PAT} ``` The extension is saved in `packages/vscode-sourcemap-helper/sourcemap-helper-(VERSION).vsix` diff --git a/package.json b/package.json index 4fb94e2..e40fd76 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "dev": "npm run dev --w vscode-sourcemap-helper", "test": "npm run test --w packages/vscode-sourcemap-helper-test", "vsce": "npm run vsce --w packages/vscode-sourcemap-helper", + "publish": "npm run publish --w packages/vscode-sourcemap-helper --", "bundle": "npm run bundle --w packages/vscode-sourcemap-helper" } } \ No newline at end of file diff --git a/packages/vscode-sourcemap-helper/package.json b/packages/vscode-sourcemap-helper/package.json index 8876191..1eddcca 100644 --- a/packages/vscode-sourcemap-helper/package.json +++ b/packages/vscode-sourcemap-helper/package.json @@ -108,6 +108,7 @@ "watch": "tsc -watch -p ./", "test": "vscode-test", "vsce": "vsce package --no-dependencies", + "publish": "vsce publish --no-dependencies", "bundle": "node bundle.js" }, "devDependencies": {