Skip to content

Commit

Permalink
ci: upload vsix
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Apr 7, 2024
1 parent c8b6898 commit 5e31fa7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 14 deletions.
42 changes: 30 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,43 @@
name: Release

permissions:
contents: write
name: Build

on:
push:
tags:
- 'v*'
- 'v*.*.*'
branches:
- main
paths-ignore:
- 'README.md'

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

View workflow job for this annotation

GitHub Actions / lint

Must use plain style scalar
- 'LICENSE'

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

View workflow job for this annotation

GitHub Actions / lint

Must use plain style scalar

permissions:
contents: write
discussions: write

jobs:
release:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
fetch-depth: 0

- uses: actions/setup-node@v3
version: 8
- name: Setup Node.js and Pnpm
uses: actions/setup-node@v3
with:
node-version: lts/*
node-version: latest
cache: 'pnpm'

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

View workflow job for this annotation

GitHub Actions / lint

Must use plain style scalar
- name: Install Dependency
run: pnpm install

- run: npx changelogithub
- name: Build Page
run: pnpm run package

- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./*.vsix
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dist"
],
"engines": {
"vscode": "^1.83.0"
"vscode": "^1.84.0"
},
"activationEvents": [
"onStartupFinished"
Expand Down Expand Up @@ -87,7 +87,7 @@
"lint": "eslint .",
"vscode:prepublish": "nr build",
"publish": "vsce publish --no-dependencies",
"pack": "vsce package --no-dependencies",
"package": "vsce package --no-dependencies",
"test": "vitest",
"typecheck": "tsc --noEmit",
"release": "bumpp && nr publish"
Expand Down

0 comments on commit 5e31fa7

Please sign in to comment.