Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
snutij committed Jan 25, 2024
1 parent b55f825 commit 9ee035e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 27 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
- name: Lint
run: yarn run lint



build:
strategy:
fail-fast: false
Expand Down
33 changes: 6 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,38 +29,17 @@ jobs:
const fs = require("fs");
const { data: releases } = await github.rest.repos.listReleases({
owner: context.repo.owner,
repo: context.repo.repo,
owner: "Shopify",
repo: "vscode-ruby-lsp",
});
console.log({context: context, github: github});
const changelog = releases
.filter((release) => !release.prerelease)
.filter((release) => github.event.release.prerelease || !release.prerelease)
.map((release) => `# ${release.tag_name}\n${release.body}\n`)
.join("\n");
fs.writeFileSync("CHANGELOG.md", changelog);
# Stable releases
- name: Publish extension in the marketplace
if: "!github.event.release.prerelease"
run: |
yarn run package
node_modules/.bin/vsce publish --packagePath vscode-ruby-lsp.vsix
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

# Prereleases
- name: Package and publish prerelease extension in the marketplace
if: "github.event.release.prerelease"
run: |
yarn run package_prerelease
node_modules/.bin/vsce publish --pre-release --packagePath vscode-ruby-lsp.vsix
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

# Stable releases for OpenVSX
- name: Publish extension on OpenVSX
if: "!github.event.release.prerelease"
run: |
yarn run package
node_modules/.bin/ovsx publish vscode-ruby-lsp.vsix -p ${{ secrets.OPENVSX_TOKEN }} --yarn
- run: cat CHANGELOG.md

0 comments on commit 9ee035e

Please sign in to comment.