|
|
|
@ -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 |
|
|
|
|