Skip to content

chore(main): release patchloom 0.0.1 #9

chore(main): release patchloom 0.0.1

chore(main): release patchloom 0.0.1 #9

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 63, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.VSCE_PAT != '', (Line: 68, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.OVSX_PAT != ''
on:
push:
branches: [main]
workflow_dispatch: {}
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
permissions:
contents: read
jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
pull-requests: write
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit
- uses: googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445 # v4.2.0
id: release
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
release:
name: Package and Upload
needs: [release-please]
if: needs.release-please.outputs.release_created == 'true'
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: write
steps:
- uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
with:
egress-policy: audit
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
persist-credentials: false
ref: ${{ needs.release-please.outputs.tag_name }}
- uses: ./.github/actions/setup-node
- run: npm run check
- run: npx @vscode/vsce package --out patchloom.vsix
- name: Upload .vsix to GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload "${{ needs.release-please.outputs.tag_name }}" patchloom.vsix
# See ~/.grok/skills/vsce-publish/SKILL.md (or /vsce-publish) for the full
# one-time browser setup (aex.dev.azure.com, PAT scopes, Open VSX agreement
# + create-namespace + ownership claim), secret names, and troubleshooting.
- name: Publish to VS Code Marketplace
if: ${{ secrets.VSCE_PAT != '' }}
run: npx @vscode/vsce publish --packagePath patchloom.vsix
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Publish to Open VSX
if: ${{ secrets.OVSX_PAT != '' }}
run: npx ovsx publish patchloom.vsix
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}