Browse Source

refactor: package name correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/9594/head
Pranav C 2 months ago
parent
commit
8035ded978
  1. 31
      .github/workflows/release-secret-cli.yml
  2. 2
      packages/nc-secret-mgr/package.json
  3. 2
      packages/noco-docs/docs/100.data-sources/050.updating-secret.md
  4. 1
      packages/nocodb/package.json

31
.github/workflows/release-secret-cli.yml

@ -1,4 +1,4 @@
name: "Release : Secret CLI Executables" name: "Release : Secret CLI NPM & Executables"
on: on:
# Triggered manually # Triggered manually
@ -15,19 +15,16 @@ jobs:
runs-on: [self-hosted, aws] runs-on: [self-hosted, aws]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Cache node modules - name: Setup pnpm
id: cache-npm uses: pnpm/action-setup@v4
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with: with:
# npm cache files are stored in `~/.npm` on Linux/macOS version: 8
path: ~/.npm - name: Setup Node 18.19.1
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} # Setup .npmrc file to publish to npm
restore-keys: | uses: actions/setup-node@v3
${{ runner.os }}-build-${{ env.cache-name }}- with:
${{ runner.os }}-build- node-version: 18.19.1
${{ runner.os }}- registry-url: 'https://registry.npmjs.org'
- name: Cache pkg modules - name: Cache pkg modules
id: cache-pkg id: cache-pkg
@ -43,11 +40,11 @@ jobs:
${{ runner.os }}-build- ${{ runner.os }}-build-
${{ runner.os }}- ${{ runner.os }}-
- name: Build executables - name: Npm package build and publish
run: | run: |
pnpm bootstrap pnpm bootstrap
cd ./packages/nocodb cd ./packages/nocodb
pnpm run build:cli pnpm run build:cli:module
cd ../nc-secret-mgr cd ../nc-secret-mgr
targetVersion=${{ github.event.inputs.tag || inputs.tag }} node ../../scripts/updateVersion.js targetVersion=${{ github.event.inputs.tag || inputs.tag }} node ../../scripts/updateVersion.js
pnpm run build && pnpm run publish pnpm run build && pnpm run publish
@ -115,7 +112,7 @@ jobs:
retention-days: 1 retention-days: 1
sign-mac-executables: sign-mac-executables:
runs-on: macos-latest runs-on: macos-latest
needs: build-executables needs: build-and-publish
steps: steps:
- uses: actions/download-artifact@master - uses: actions/download-artifact@master
@ -136,7 +133,7 @@ jobs:
publish-mac-executables: publish-mac-executables:
needs: [sign-mac-executables,build-executables] needs: [sign-mac-executables,build-and-publish]
runs-on: [self-hosted, aws] runs-on: [self-hosted, aws]
steps: steps:
- uses: actions/download-artifact@master - uses: actions/download-artifact@master

2
packages/nc-secret-mgr/package.json

@ -1,5 +1,5 @@
{ {
"name": "nc-secret", "name": "nc-secret-mgr",
"version": "0.0.1", "version": "0.0.1",
"description": "", "description": "",
"main": "dist/cli.js", "main": "dist/cli.js",

2
packages/noco-docs/docs/100.data-sources/050.updating-secret.md

@ -41,7 +41,7 @@ Alternatively, you can use the `nc-secret-mgr` executable to update secrets.
2. Run the executable using the following command: 2. Run the executable using the following command:
```bash ```bash
NC_DB="pg://host:port?u=user&p=password&d=database" ./nc-secret-macos-arm64 update --prev <previous-secret> --new <new-secret> NC_DB="pg://host:port?u=user&p=password&d=database" ./nc-secret-mgr-macos-arm64 update --prev <previous-secret> --new <new-secret>
``` ```
Replace `<previous-secret>` with the name of the secret you used previously, and `<new-secret>` with the new value of the secret. Replace `<previous-secret>` with the name of the secret you used previously, and `<new-secret>` with the new value of the secret.

1
packages/nocodb/package.json

@ -22,6 +22,7 @@
"scripts": { "scripts": {
"build": "pnpm run docker:build", "build": "pnpm run docker:build",
"build:obfuscate": "EE=true webpack --config webpack.config.js", "build:obfuscate": "EE=true webpack --config webpack.config.js",
"build:cli:module": "EE=true webpack --config webpack.cli.config.js",
"obfuscate:build:publish": "pnpm run build:obfuscate && pnpm publish .", "obfuscate:build:publish": "pnpm run build:obfuscate && pnpm publish .",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"", "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "pnpm run watch:run", "start": "pnpm run watch:run",

Loading…
Cancel
Save