Skip to content

Commit

Permalink
Added publishing to github npm regsitry
Browse files Browse the repository at this point in the history
  • Loading branch information
dm3ch committed Nov 1, 2023
1 parent a0202c6 commit dd98d57
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@ on:
workflow_dispatch:

jobs:
publish:
publish-npmjs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- run: yarn publish

publish-github:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: Auth in GitHub private registry npm
run: |
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
echo "@1inch:registry=https://npm.pkg.github.com" >> .npmrc
- run: yarn publish

0 comments on commit dd98d57

Please sign in to comment.