Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2071db93e5 | |||
| b6019a48e5 | |||
| 14ac869ed6 |
@@ -2,7 +2,8 @@ name: Publish to NPM Registry
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [created]
|
types: [created, published]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
@@ -16,7 +17,6 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '20.x'
|
node-version: '20.x'
|
||||||
registry-url: 'https://git.dragonchain.com/api/packages/dragonchain/npm/'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
@@ -28,6 +28,9 @@ jobs:
|
|||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Publish to Gitea NPM registry
|
- 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:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.SA_DC_BUILD_API_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user