Browse Source

fix(workflows): revise release-npm.yml

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
2e2c5b82f1
  1. 12
      .github/workflows/release-npm.yml

12
.github/workflows/release-npm.yml

@ -1,4 +1,4 @@
name: "Release : pnpm packages" name: "Release : NPM packages"
on: on:
# Triggered manually # Triggered manually
@ -47,7 +47,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
ref: ${{ github.ref }} ref: ${{ github.ref }}
- name: pnpm Setup and Publish with 16.15.0 - name: pnpm Setup and Publish with 16.15.0
# Setup .npmrc file to publish to pnpm # Setup .npmrc file to publish to npm
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 16.15.0 node-version: 16.15.0
@ -55,18 +55,18 @@ jobs:
- run: | - run: |
export NODE_OPTIONS="--max_old_space_size=16384" export NODE_OPTIONS="--max_old_space_size=16384"
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNocodbSdkVersion.js && targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNocodbSdkVersion.js &&
cd packages/nocodb-sdk && pnpm install
pnpm install && pnpm run build && pnpm publish && cd packages/nocodb-sdk && pnpm run build && pnpm publish &&
cd ../.. && cd ../.. &&
sleep 60 && sleep 60 &&
pnpm install &&
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNocodbSdk.js && targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNocodbSdk.js &&
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNcGuiVersion.js && targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNcGuiVersion.js &&
cd packages/nc-gui && cd packages/nc-gui &&
pnpm install &&
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} pnpm run build:copy:publish && targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} pnpm run build:copy:publish &&
cd ../.. && cd ../.. &&
sleep 60 && sleep 60 &&
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNcGui.js && cd packages/nocodb && pnpm install && pnpm run obfuscate:build:publish targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNcGui.js && cd packages/nocodb && pnpm run obfuscate:build:publish
env: env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Pull Request - name: Create Pull Request

Loading…
Cancel
Save