Skip to content

Commit

Permalink
fix: replace npm with pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpmohiburrahman committed Jun 24, 2024
1 parent 1bdf6a5 commit 2901d0c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/ci-chrome.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

name: Update Chrome Extension

on:
Expand All @@ -18,13 +19,18 @@ jobs:
with:
node-version: 'latest'

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 'latest'

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Build and release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release
run: pnpm exec semantic-release

build-chrome-extension:
name: Build Chrome Extension Artifact
Expand All @@ -41,14 +47,14 @@ jobs:

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 'latest'

- name: Install dependencies
run: pnpm install

- name: Build
run: |
# Create the dist folder by building the extension
pnpm build
run: pnpm build

- name: Archive chrome-extension artifact
run: |
Expand Down Expand Up @@ -78,8 +84,7 @@ jobs:
name: chrome-extension

- name: Install webstore CLI
run: |
npm install -g chrome-webstore-upload-cli
run: npm install -g chrome-webstore-upload-cli

- name: Upload step
run: |
Expand Down
16 changes: 16 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

{
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/git",
{
"assets": ["package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/changelog"
]
}

0 comments on commit 2901d0c

Please sign in to comment.