Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlika committed Jul 1, 2024
1 parent e054cd4 commit 8536717
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,15 @@ jobs:
build:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: pnpm/action-setup@v4
with:
version: latest

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

- run: pnpm i
- run: pnpm lint
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,21 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
node-version: latest
registry-url: "https://registry.npmjs.org/"

- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
version: latest

- name: Install dependencies
run: pnpm install
Expand All @@ -32,7 +34,7 @@ jobs:
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Update package.json version
- name: Update package.json and WebTorrent client versions
run: |
export TAG=$VERSION
node update-versions.js
Expand Down

0 comments on commit 8536717

Please sign in to comment.