Skip to content

Commit

Permalink
chore: Cosmetic cleanup of CI files
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRynne committed May 26, 2024
1 parent e16f34c commit 8154d64
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,21 @@ jobs:
steps:
- name: 🚧 Checkout code
uses: actions/checkout@v4

- name: 🥁 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: ♻️ NPM CI
run: npm ci

- name: 🛠 Build All packages
run: npm run lerna -- run build

- name: 🧪 Test all packages with coverage
run: npm run lerna -- run coverage

- name: 📊 Upload test results to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,32 @@ jobs:
build:
uses: ./.github/workflows/check.yml
secrets: inherit

release:
name: Release version
runs-on: ubuntu-latest
needs: build
env:
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}
steps:
- name: 🚧 Checkout code
uses: actions/checkout@v4

- name: 🥁 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: ♻️ NPM CI
run: npm ci

- name: 🛠 Build All packages
run: npm run lerna -- run build
- name: 📦 Publish

- name: 📦 Publish NPM packages
run: npm run lerna -- publish from-package -y
env:
GPR_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: 🚀 Publish VSCode extension
run: npm run lerna -- run publish:vsce
env:
VSCE_PAT: ${{ secrets.VS_MARKETPLACE_TOKEN }}

0 comments on commit 8154d64

Please sign in to comment.