Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,16 @@ jobs:
run: pnpm build

- name: Publish to npm
continue-on-error: true
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Verify npm publish
run: |
PACKAGE_VERSION="$(node -p "require('./package.json').version")"
PUBLISHED_VERSION="$(npm view "@corbat-tech/coco@${PACKAGE_VERSION}" version)"
test "$PUBLISHED_VERSION" = "$PACKAGE_VERSION"

# ── 2. VS Code Marketplace ───────────────────────────────────────────────────
release-vscode:
name: Publish VS Code Extension
Expand Down Expand Up @@ -78,7 +83,6 @@ jobs:
retention-days: 90

- name: Publish to VS Code Marketplace
continue-on-error: true
run: npm run publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
Expand Down