Fix publish workflow: configure Gitea registry only for publish step
This commit is contained in:
@@ -17,7 +17,6 @@ jobs:
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20.x'
|
||||
registry-url: 'https://git.dragonchain.com/api/packages/dragonchain/npm/'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
@@ -29,6 +28,9 @@ jobs:
|
||||
run: npm run build
|
||||
|
||||
- name: Publish to Gitea NPM registry
|
||||
run: npm publish
|
||||
run: |
|
||||
echo "@dragonchain-inc:registry=https://git.dragonchain.com/api/packages/dragonchain/npm/" > ~/.npmrc
|
||||
echo "//git.dragonchain.com/api/packages/dragonchain/npm/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
|
||||
npm publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user