Skip to content

Commit 3193c18

Browse files
committed
chore: move publish command
1 parent b25c18b commit 3193c18

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
- name: Set up Node.js
1616
uses: actions/setup-node@v4
1717
with:
18-
node-version: '20.x'
19-
registry-url: 'https://registry.npmjs.org/'
18+
node-version: "20.x"
19+
registry-url: "https://registry.npmjs.org/"
2020

2121
- name: Install dependencies
2222
run: yarn install --immutable
@@ -31,6 +31,6 @@ jobs:
3131
git push
3232
3333
- name: Publish to npm
34-
run: yarn npm publish --access public
34+
run: yarn publish
3535
env:
3636
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "src/index.js",
66
"version": "0.0.1",
77
"scripts": {
8-
"publish": "yarn npm publish",
8+
"publish": "yarn npm publish --access public",
99
"lint": "eslint ./src",
1010
"prettier:fix": "npx prettier --write ./src"
1111
},

0 commit comments

Comments
 (0)