Skip to content

Commit 22350df

Browse files
authored
Update release.yml
1 parent 74447d7 commit 22350df

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,48 +7,42 @@ on:
77

88
permissions:
99
contents: read
10-
packages: write
11-
10+
packages: write
11+
1212
jobs:
1313
publish:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- name: Checkout repository
17+
- name: 📥 Checkout repository
1818
uses: actions/checkout@v4
1919

20-
- name: Setup pnpm
20+
- name: 🧰 Setup pnpm
2121
uses: pnpm/action-setup@v4
2222
with:
2323
version: 10.13.1
2424
run_install: false
2525

26-
- name: Setup Node.js (npmjs.org)
26+
- name: 🔧 Setup Node.js (for npmjs)
2727
uses: actions/setup-node@v4
2828
with:
2929
node-version: 18
3030
registry-url: 'https://registry.npmjs.org/'
31+
scope: '@interactive-video-labs'
3132
cache: 'pnpm'
3233

33-
- name: Install dependencies
34+
- name: 📦 Install dependencies
3435
run: pnpm install
3536

36-
- name: Build package
37+
- name: 🛠 Build package
3738
run: pnpm build
3839

39-
- name: Publish to npmjs.org
40-
run: pnpm publish --access public --no-git-checks
40+
- name: 🚀 Publish to npmjs
41+
run: pnpm publish --access public --no-git-checks --registry=https://registry.npmjs.org/
4142
env:
4243
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4344

44-
- name: Set up Node.js for GitHub Packages
45-
uses: actions/setup-node@v4
46-
with:
47-
node-version: 18
48-
registry-url: 'https://npm.pkg.github.com/'
49-
scope: '@interactive-video-labs'
50-
51-
- name: Publish to GitHub Packages
52-
run: pnpm publish --no-git-checks
45+
- name: 🚀 Publish to GitHub Packages
46+
run: pnpm publish --no-git-checks --registry=https://npm.pkg.github.com/
5347
env:
5448
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)