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

1
packages/nocodb/package.json

@ -22,6 +22,7 @@
"scripts": {
"build": "pnpm run docker:build",
"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 .",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "pnpm run watch:run",

Loading…
Cancel
Save