Skip to content

Commit dcd2fbc

Browse files
committed
ci: revert to pnpm for publishing
1 parent 4731270 commit dcd2fbc

1 file changed

Lines changed: 3 additions & 41 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 0
18-
- name: List files
19-
run: ls -la
20-
- name: Check pnpm-lock.yaml
21-
run: |
22-
if [ -f "pnpm-lock.yaml" ]; then
23-
echo "pnpm-lock.yaml found"
24-
ls -l pnpm-lock.yaml
25-
else
26-
echo "pnpm-lock.yaml NOT found"
27-
fi
2816
- name: Install pnpm
2917
uses: pnpm/action-setup@v4
3018
with:
@@ -35,14 +23,7 @@ jobs:
3523
node-version: 20
3624
cache: 'pnpm'
3725
- name: Install dependencies
38-
run: |
39-
if [ -f "pnpm-lock.yaml" ]; then
40-
echo "Installing with frozen lockfile"
41-
pnpm install --frozen-lockfile
42-
else
43-
echo "Installing without frozen lockfile"
44-
pnpm install
45-
fi
26+
run: pnpm install --frozen-lockfile
4627
- name: Run tests
4728
run: pnpm test
4829

@@ -51,18 +32,6 @@ jobs:
5132
runs-on: ubuntu-latest
5233
steps:
5334
- uses: actions/checkout@v4
54-
with:
55-
fetch-depth: 0
56-
- name: List files
57-
run: ls -la
58-
- name: Check pnpm-lock.yaml
59-
run: |
60-
if [ -f "pnpm-lock.yaml" ]; then
61-
echo "pnpm-lock.yaml found"
62-
ls -l pnpm-lock.yaml
63-
else
64-
echo "pnpm-lock.yaml NOT found"
65-
fi
6635
- name: Install pnpm
6736
uses: pnpm/action-setup@v4
6837
with:
@@ -74,15 +43,8 @@ jobs:
7443
registry-url: https://registry.npmjs.org/
7544
cache: 'pnpm'
7645
- name: Install dependencies
77-
run: |
78-
if [ -f "pnpm-lock.yaml" ]; then
79-
echo "Installing with frozen lockfile"
80-
pnpm install --frozen-lockfile
81-
else
82-
echo "Installing without frozen lockfile"
83-
pnpm install
84-
fi
46+
run: pnpm install --frozen-lockfile
8547
- name: Publish to npm
8648
run: pnpm publish --no-git-checks
8749
env:
88-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
50+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)