-
Notifications
You must be signed in to change notification settings - Fork 1
Publish on npm #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| name: Publish Package to npmjs | ||
| on: | ||
| release: | ||
| types: [published] | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
|
|
@@ -19,7 +19,7 @@ jobs: | |
| echo "@internxt:registry=https://npm.pkg.github.com/" > .npmrc | ||
| echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In consequence, the GITHUB_TOKEN env will not do the job, as it only works with the GitHub API and only if it has the required permissions. This should be the new line
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have already set the value of the NPM_TOKEN for you, so it should work now |
||
|
|
||
| - run: yarn | ||
| - run: npm publish --scope=@internxt --access public | ||
|
|
||
| # Change the registry to npmjs (to publish) | ||
| - run: | | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Point the repo to npmjs, not to the npm repository of GitHub