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