Skip to content

Commit f9055b5

Browse files
committed
chore: Fix release preview step
1 parent e22cbb4 commit f9055b5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/test-and-release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
- name: 📥 Checkout repository
32-
uses: actions/checkout@8edcb1bdb4e267140fa742c62e395cd74f332709 # main
32+
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # main
3333

3434
- name: 🟢 Setup Node.js
3535
uses: actions/setup-node@5e2628c959b9ade56971c0afcebbe5332d44b398 # main
@@ -39,13 +39,13 @@ jobs:
3939

4040
- name: 🗄 Cache node_modules
4141
id: cache-node_modules
42-
uses: actions/cache@640a1c2554105b57832a23eea0b4672fc7a790d5 # main
42+
uses: actions/cache@638ed79f9dc94c1de1baef91bcab5edaa19451f4 # main
4343
with:
4444
path: "**/node_modules"
4545
key: node_modules-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
4646

4747
- name: 🗄 Cache .eslintcache
48-
uses: actions/cache@640a1c2554105b57832a23eea0b4672fc7a790d5 # main
48+
uses: actions/cache@638ed79f9dc94c1de1baef91bcab5edaa19451f4 # main
4949
with:
5050
path: .eslintcache
5151
key: eslintcache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
@@ -68,7 +68,9 @@ jobs:
6868

6969
- name: 🚀 Release preview
7070
if: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/beta' }}
71+
# Call to npm publish --dry-run is currently necessary, see https://github.com/stackblitz-labs/pkg.pr.new/issues/320
7172
run: |
73+
npm publish --dry-run
7274
npx pkg-pr-new publish
7375
7476
- name: 🚀 Release on npm and jsr

0 commit comments

Comments
 (0)