Skip to content

Commit

Permalink
update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
HexaField committed Mar 4, 2023
1 parent 033acdc commit 646ba97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/publish-npm-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: https://npm.pkg.github.com/
scope: '@etherealengine'
- name: Config npm registry token
run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
Expand Down Expand Up @@ -60,7 +59,7 @@ jobs:
pr_title: ${{ github.event.release.tag_name }}
pr_body: Bump version to ${{ github.event.release.tag_name }}
- name: Publish to npm
run: npm run publish-no-verify
run: npm run publish-npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Config npm registry token
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"format": "prettier --write \"web/*.{ts,tsx}\"",
"format-staged": "lint-staged",
"lint": "prettier --check \"web/*.{ts,tsx}\"",
"publish-no-verify": "npm publish --yes --ignore-scripts",
"publish-github": "npm publish --yes --ignore-scripts --registry https://npm.pkg.github.com"
"publish-npm": "npm publish --yes --ignore-scripts --registry=https://registry.npmjs.org",
"publish-github": "npm publish --yes --ignore-scripts --registry=https://npm.pkg.github.com"
},
"pre-commit": [
"format-staged"
Expand Down

0 comments on commit 646ba97

Please sign in to comment.