Skip to content

Commit

Permalink
Migrate to pnpm 8 (#103)
Browse files Browse the repository at this point in the history
* Migrate to pnpm 8

* Delete codeql

* Update version action step
  • Loading branch information
Mikescops authored Jan 8, 2024
1 parent fe125b7 commit 7619fa0
Show file tree
Hide file tree
Showing 15 changed files with 5,329 additions and 12,775 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

32 changes: 28 additions & 4 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,40 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [18]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- run: npm run build:prod

- run: npm run lint

- name: Upload artifact
Expand Down
38 changes: 35 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,44 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [18]

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Build project
run: |
npm ci
npm run build:prod
npm run zip
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -33,6 +61,7 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Upload Source build
id: upload-source-build
uses: actions/upload-release-asset@v1
Expand All @@ -43,6 +72,7 @@ jobs:
asset_path: ./dist/source.zip
asset_name: source.zip
asset_content_type: application/zip

- name: Upload Firefox release
id: upload-firefox-release
uses: actions/upload-release-asset@v1
Expand All @@ -53,6 +83,7 @@ jobs:
asset_path: ./dist/firefox.zip
asset_name: firefox.zip
asset_content_type: application/zip

- name: Upload Chrome release
id: upload-chrome-release
uses: actions/upload-release-asset@v1
Expand All @@ -63,6 +94,7 @@ jobs:
asset_path: ./dist/chrome.zip
asset_name: chrome.zip
asset_content_type: application/zip

- name: Upload Edge release
id: upload-edge-release
uses: actions/upload-release-asset@v1
Expand Down
Loading

0 comments on commit 7619fa0

Please sign in to comment.