Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to pnpm 8 #103

Merged
merged 3 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading