Skip to content

Commit

Permalink
Merge pull request #623 from CodeSignal/npm-package-deploy
Browse files Browse the repository at this point in the history
Npm package deploy
  • Loading branch information
Allless authored Jul 12, 2024
2 parents bd15ad5 + 0aae783 commit b0bf537
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '14'
registry-url: 'https://npm.pkg.github.com'

- name: Install dependencies
run: npm ci

- name: Build package
run: npm run build

- name: Publish package
run: npm publish --registry=https://npm.pkg.github.com
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package to GitHub Package Registry
run: echo //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }} > .npmrc && npm publish --registry=https://npm.pkg.github.com

- name: Publish package to NPM
run: echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_BOTTY_TOKEN }} > .npmrc && npm publish --registry=https://registry.npmjs.org
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b0bf537

Please sign in to comment.