Skip to content

Commit

Permalink
style: 🎨 format github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rhalaly committed Jun 5, 2024
1 parent a001022 commit c188ce5
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: CI/CD
on:
push:
branches:
- main
- main
release:
types:
- published
- published

jobs:
build:
Expand All @@ -15,33 +15,33 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 20.x

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Test
run: yarn test
if: runner.os != 'Linux'

- name: Test with xvfb
run: xvfb-run -a yarn test
if: runner.os == 'Linux'

- name: Publish VSCode
if: success() && startsWith( github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest'
run: yarn vscode:publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

- name: Publish OVSX
if: success() && startsWith( github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest'
run: yarn ovsx
env:
VSCE_PAT: ${{ secrets.OVSX_PAT }}
- name: Checkout
uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 20.x

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Test
run: yarn test
if: runner.os != 'Linux'

- name: Test with xvfb
run: xvfb-run -a yarn test
if: runner.os == 'Linux'

- name: Publish VSCode
if: success() && startsWith( github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest'
run: yarn vscode:publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

- name: Publish OVSX
if: success() && startsWith( github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest'
run: yarn ovsx
env:
VSCE_PAT: ${{ secrets.OVSX_PAT }}
10 changes: 5 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
name: Conventional PR
runs-on: ubuntu-latest
steps:
- uses: deepakputhraya/action-pr-title@master
with:
allowed_prefixes: 'fix,feat,chore,docs,style,refactor,perf,test'
prefix_case_sensitive: true
github_token: ${{ github.token }}
- uses: deepakputhraya/action-pr-title@master
with:
allowed_prefixes: "fix,feat,chore,docs,style,refactor,perf,test"
prefix_case_sensitive: true
github_token: ${{ github.token }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Create Changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v3
Expand Down

0 comments on commit c188ce5

Please sign in to comment.