mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 04:56:00 +00:00
chore: auto-update github workflows
This commit is contained in:
29
.github/workflows/build-npm-pro.yaml
vendored
29
.github/workflows/build-npm-pro.yaml
vendored
@@ -7,6 +7,9 @@ name: NPM packages PREMIUM
|
|||||||
tags:
|
tags:
|
||||||
- v[0-9]+.[0-9]+.[0-9]+
|
- v[0-9]+.[0-9]+.[0-9]+
|
||||||
- v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+
|
- v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: write
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
@@ -49,13 +52,8 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
node adjustNpmPackageJsonPremium
|
node adjustNpmPackageJsonPremium
|
||||||
- name: Configure NPM token
|
- name: Update npm
|
||||||
env:
|
run: npm install -g npm@latest
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
run: |
|
|
||||||
cd ..
|
|
||||||
cd dbgate-merged
|
|
||||||
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
|
||||||
- name: Remove dbmodel - should be not published
|
- name: Remove dbmodel - should be not published
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
@@ -71,28 +69,35 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged
|
cd dbgate-merged
|
||||||
yarn setCurrentVersion
|
yarn setCurrentVersion
|
||||||
|
- name: Compute npm dist-tag
|
||||||
|
run: |
|
||||||
|
if [[ "${GITHUB_REF_NAME}" =~ -alpha\. ]]; then
|
||||||
|
echo "NPM_TAG=alpha" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "NPM_TAG=latest" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
- name: Publish dbgate-api-premium
|
- name: Publish dbgate-api-premium
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged/packages/api
|
cd dbgate-merged/packages/api
|
||||||
npm publish
|
npm publish --tag "$NPM_TAG"
|
||||||
- name: Publish dbgate-web-premium
|
- name: Publish dbgate-web-premium
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged/packages/web
|
cd dbgate-merged/packages/web
|
||||||
npm publish
|
npm publish --tag "$NPM_TAG"
|
||||||
- name: Publish dbgate-serve-premium
|
- name: Publish dbgate-serve-premium
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged/packages/serve
|
cd dbgate-merged/packages/serve
|
||||||
npm publish
|
npm publish --tag "$NPM_TAG"
|
||||||
- name: Publish dbgate-plugin-cosmosdb
|
- name: Publish dbgate-plugin-cosmosdb
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged/plugins/dbgate-plugin-cosmosdb
|
cd dbgate-merged/plugins/dbgate-plugin-cosmosdb
|
||||||
npm publish
|
npm publish --tag "$NPM_TAG"
|
||||||
- name: Publish dbgate-plugin-firestore
|
- name: Publish dbgate-plugin-firestore
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
cd ..
|
||||||
cd dbgate-merged/plugins/dbgate-plugin-firestore
|
cd dbgate-merged/plugins/dbgate-plugin-firestore
|
||||||
npm publish
|
npm publish --tag "$NPM_TAG"
|
||||||
|
|||||||
Reference in New Issue
Block a user