Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2071db93e5 | |||
| b6019a48e5 | |||
| 14ac869ed6 |
@@ -2,7 +2,8 @@ name: Publish to NPM Registry
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
types: [created, published]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
@@ -16,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
|
||||
@@ -28,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 }}
|
||||
NODE_AUTH_TOKEN: ${{ secrets.SA_DC_BUILD_API_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user