Skip to content

Commit 00bde5e

Browse files
authored
chore: update publish workflows to use pnpm@10.33.0 with GitHub Packages and Node 24.14.1
1 parent 8f4ba34 commit 00bde5e

4 files changed

Lines changed: 26 additions & 58 deletions

File tree

.github/workflows/cr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v4
11-
- uses: actions/setup-node@v4
10+
- uses: actions/checkout@v6
11+
- uses: actions/setup-node@v6
1212
with:
1313
node-version: 20
1414

15-
- uses: pnpm/action-setup@v4
15+
- uses: pnpm/action-setup@v5
1616
with:
1717
run_install: true
1818

.github/workflows/publish.yml

Lines changed: 17 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,28 @@ name: publish
22

33
on:
44
push:
5-
branches:
6-
- '*'
75
tags:
86
- 'v*'
97

108
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v3
15-
with:
16-
ref: master
17-
18-
- uses: volta-cli/action@v4
19-
20-
- name: Cache pnpm modules
21-
uses: actions/cache@v4
22-
with:
23-
path: ~/.pnpm-store
24-
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
25-
restore-keys: |
26-
${{ runner.os }}-
27-
28-
- uses: pnpm/action-setup@v4
29-
with:
30-
run_install: true
31-
32-
- run: pnpm lint
33-
349
publish-npm:
3510
if: startsWith(github.ref, 'refs/tags/v')
36-
needs: build
3711
runs-on: ubuntu-latest
3812
steps:
39-
- uses: actions/checkout@v3
40-
with:
41-
ref: master
42-
43-
- uses: volta-cli/action@v4
44-
45-
- name: Authorize NPM
46-
run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
47-
48-
- name: Cache pnpm modules
49-
uses: actions/cache@v4
50-
with:
51-
path: ~/.pnpm-store
52-
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
53-
restore-keys: |
54-
${{ runner.os }}-
55-
56-
- uses: pnpm/action-setup@v4
57-
with:
58-
run_install: true
59-
60-
- run: pnpm build
61-
62-
- run: pnpm publish
13+
- name: checkout
14+
uses: actions/checkout@v5
15+
16+
- name: set up node and pnpm
17+
run: |
18+
corepack enable
19+
pnpm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
20+
pnpm config set '//npm.pkg.github.com/:_authToken' "${{ secrets.GITHUB_TOKEN }}"
21+
pnpm i
22+
23+
- name: build
24+
run: pnpm build
25+
26+
- name: publish
27+
run: |
28+
pnpm publish --registry https://npm.pkg.github.com --no-git-checks
29+
pnpm publish --registry https://registry.npmjs.org --no-git-checks

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
engine-strict=true
2+
use-node-version=24.14.1
3+
node-version=24.14.1
4+
node-mirror:release=https://nodejs-org.b-cdn.net/download/release/

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
"version": "12.2.0",
44
"description": "An isomorphic http client for Svelte apps",
55
"type": "module",
6-
"repository": {
7-
"type": "git",
8-
"url": "https://github.com/beyonk-adventures/http.git"
9-
},
6+
"repository": "https://github.com/beyonk/http.git",
107
"files": [
118
"dist"
129
],
@@ -56,5 +53,5 @@
5653
"volta": {
5754
"node": "18.15.0"
5855
},
59-
"packageManager": "pnpm@10.12.0"
56+
"packageManager": "pnpm@10.33.0"
6057
}

0 commit comments

Comments
 (0)