Skip to content

Commit 9270f0f

Browse files
committed
Update workflow steps
1 parent f905126 commit 9270f0f

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/production.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,24 @@ jobs:
2626
- name: "Install dependencies and build"
2727
run: npm ci && npm run build
2828

29-
- name: "Publish to NPM"
30-
run: |
31-
npm config set registry https://registry.npmjs.org
32-
npm publish ./dist --access public
29+
- name: "Set registry to NPM Packages"
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: 20
33+
registry-url: 'https://registry.npmjs.org'
34+
35+
- name: "Publish to NPM Packages"
36+
run: npm publish ./dist --access public
3337
env:
3438
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
3539

36-
- name: "Publish to GitHub"
37-
run: |
38-
npm config set registry https://npm.pkg.github.com
39-
npm publish ./dist
40+
- name: "Set registry to GitHub Packages"
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: 20
44+
registry-url: 'https://npm.pkg.github.com'
45+
46+
- name: "Publish to GitHub Packages"
47+
run: npm publish ./dist
4048
env:
4149
NODE_AUTH_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)