mirror of
https://github.com/tauri-apps/tauri-vscode.git
synced 2026-01-31 00:35:18 +01:00
feat(ci): publish on covector workflow
This commit is contained in:
@@ -22,8 +22,9 @@ jobs:
|
||||
id: covector
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
command: 'version'
|
||||
command: 'version-or-publish'
|
||||
- name: Create Pull Request With Versions Bumped
|
||||
if: steps.covector.outputs.commandRan == 'version'
|
||||
uses: tauri-apps/create-pull-request@v3.4.1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
@@ -32,3 +33,10 @@ jobs:
|
||||
commit-message: "apply version updates"
|
||||
labels: "version updates"
|
||||
body: ${{ steps.covector.outputs.change }}
|
||||
- name: Publish Extension
|
||||
if: steps.covector.outputs.commandRan == 'publish'
|
||||
uses: lannonbr/vsce-action@master
|
||||
with:
|
||||
args: "publish -p $VSCE_TOKEN"
|
||||
env:
|
||||
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
|
||||
18
.github/workflows/publish.yml
vendored
18
.github/workflows/publish.yml
vendored
@@ -1,18 +0,0 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- release
|
||||
|
||||
name: Publish Extension
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn
|
||||
- uses: lannonbr/vsce-action@master
|
||||
with:
|
||||
args: "publish -p $VSCE_TOKEN"
|
||||
env:
|
||||
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
|
||||
Reference in New Issue
Block a user