Skip to content

Commit

Permalink
chore: add publish ci
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Aug 26, 2023
1 parent 2098970 commit ac6c161
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish

on:
create:
tags:
- "v*"

jobs:
publish:
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version-file: ".node-version"

- uses: pnpm/action-setup@v2
with:
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- args: [--global, "@vscode/vsce"]
- name: Package
run: vsce package

- name: Publish to Github Releases
uses: softprops/action-gh-release@c9b46fe7aad9f02afd89b12450b780f52dacfb2d
with:
files: |
*.vsix
- name: Publish to VS Code Marketplace
run: vsce publish --target web
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 comments on commit ac6c161

Please sign in to comment.