Skip to content

Commit

Permalink
feat(packaging): Added semantic-release to the repository (#79)
Browse files Browse the repository at this point in the history
Trying to automate releases using `semantic-release`.
  • Loading branch information
JakeShirley authored Jul 8, 2024
1 parent bd6bbec commit 04f56e3
Show file tree
Hide file tree
Showing 7 changed files with 8,402 additions and 1,893 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI

on: [pull_request]

jobs:
lint_pr_title:
name: Lint PR Title
runs-on: ubuntu-latest
steps:
- name: Conventional Commit In Pull Requests
uses: ytanikin/[email protected]
with:
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'
add_label: 'true'

build_and_test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm run ci:all
- run: npm run build:all
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: release

on:
push:
branches: [main]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# In case you want to publish to Visual Studio Marketplace
VSCE_PAT: ${{ secrets.VSCE_PAT }}
# In case you want to publish to Open VSX Registry
#OVSX_PAT: ${{ secrets.OVSX_PAT }}
File renamed without changes.
Loading

0 comments on commit 04f56e3

Please sign in to comment.