Skip to content

Commit

Permalink
deploy: fix deploy to npmjs
Browse files Browse the repository at this point in the history
  • Loading branch information
rah-emil committed Jan 28, 2024
1 parent 9bf6115 commit f3c4b9c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ jobs:
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_REGISTRY: 'https://registry.npmjs.org'
run: |
yarn config set 'npmRegistries[${NPM_REGISTRY}].npmAlwaysAuth' true
yarn config set 'npmRegistries[${NPM_REGISTRY}].npmAuthToken' ${NODE_AUTH_TOKEN}
yarn config set 'npmAuthToken' ${NODE_AUTH_TOKEN}
yarn npm publish --access public
6 changes: 6 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
npmAlwaysAuth: true

npmPublishAccess: public

npmPublishRegistry: "https://registry.npmjs.org"

yarnPath: .yarn/releases/yarn-4.0.2.cjs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "fake-chat",
"name": "@rah-emil/fake-chat",
"version": "3.0.0",
"description": "Fake-chat.js is a handy chat emulator",
"main": "dist/fake-chat.mjs",
Expand Down

0 comments on commit f3c4b9c

Please sign in to comment.