Skip to content

Commit

Permalink
Update workflow for lint checks and npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
Royal-lobster committed Oct 25, 2024
1 parent cbada5b commit 02097a0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
name: Checks
name: Lint Checks
on: [push]
jobs:
ci:
name: Lint using rome
name: Lint using biome
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Installing dependencies
run: yarn install --frozen-lockfile
- name: Lint rome
run: yarn rome ci .
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js and pnpm
uses: wyvox/action-setup-pnpm@v3
with:
node-version: '18'
- name: Lint biome
run: pnpm biome ci .
13 changes: 5 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,16 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v2

- name: Setup Node.js 18.x
uses: actions/setup-node@v2
- name: Setup Node.js and pnpm
uses: wyvox/action-setup-pnpm@v3
with:
node-version: 18.x
node-version: '18'

- name: Install Dependencies
run: yarn

- name: Create Release Pull Request or Trigger Publish Workflow
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn release
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }}
Expand Down

0 comments on commit 02097a0

Please sign in to comment.