diff --git a/.github/workflows/ci-chrome.yml b/.github/workflows/ci-chrome.yml index 219c58e..890391a 100644 --- a/.github/workflows/ci-chrome.yml +++ b/.github/workflows/ci-chrome.yml @@ -1,3 +1,4 @@ + name: Update Chrome Extension on: @@ -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 @@ -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: | @@ -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: | diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..5426d83 --- /dev/null +++ b/.releaserc @@ -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" + ] +} \ No newline at end of file