Update npm publishing steps and remove unnecessary access flag
This commit is contained in:
@@ -20,8 +20,6 @@ permissions:
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
@@ -36,11 +34,19 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Use Node.js 22.x
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 22.x
|
||||
cache: yarn
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
|
||||
# Ensure npm 11.5.1 or later is installed
|
||||
- name: Update npm
|
||||
run: npm install -g npm@11.5.1
|
||||
|
||||
# - name: Configure NPM token
|
||||
# env:
|
||||
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
# run: |
|
||||
# npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
|
||||
|
||||
- name: yarn install
|
||||
run: |
|
||||
@@ -61,114 +67,114 @@ jobs:
|
||||
- name: Publish types
|
||||
working-directory: packages/types
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish tools
|
||||
working-directory: packages/tools
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish sqltree
|
||||
working-directory: packages/sqltree
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish rest
|
||||
working-directory: packages/rest
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish api
|
||||
working-directory: packages/api
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish datalib
|
||||
working-directory: packages/datalib
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish filterparser
|
||||
working-directory: packages/filterparser
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish web
|
||||
working-directory: packages/web
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-serve
|
||||
working-directory: packages/serve
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbmodel
|
||||
working-directory: packages/dbmodel
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-csv
|
||||
working-directory: plugins/dbgate-plugin-csv
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-xml
|
||||
working-directory: plugins/dbgate-plugin-xml
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-excel
|
||||
working-directory: plugins/dbgate-plugin-excel
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-mssql
|
||||
working-directory: plugins/dbgate-plugin-mssql
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-mysql
|
||||
working-directory: plugins/dbgate-plugin-mysql
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-mongo
|
||||
working-directory: plugins/dbgate-plugin-mongo
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-postgres
|
||||
working-directory: plugins/dbgate-plugin-postgres
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-sqlite
|
||||
working-directory: plugins/dbgate-plugin-sqlite
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-redis
|
||||
working-directory: plugins/dbgate-plugin-redis
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-oracle
|
||||
working-directory: plugins/dbgate-plugin-oracle
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-clickhouse
|
||||
working-directory: plugins/dbgate-plugin-clickhouse
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-dbf
|
||||
working-directory: plugins/dbgate-plugin-dbf
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
- name: Publish dbgate-plugin-cassandra
|
||||
working-directory: plugins/dbgate-plugin-cassandra
|
||||
run: |
|
||||
npm publish --tag "$NPM_TAG" --access public
|
||||
npm publish --tag "$NPM_TAG"
|
||||
|
||||
Reference in New Issue
Block a user