Add checkout pro step to budibase-ci

This commit is contained in:
Rory Powell 2022-04-13 21:13:01 +01:00
parent 08edd0e2d8
commit d87714107d
3 changed files with 8 additions and 4 deletions

View File

@ -22,6 +22,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
repository: budibase/budibase-pro
path: './pro'
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1 uses: actions/setup-node@v1

View File

@ -21,8 +21,7 @@
}, },
"scripts": { "scripts": {
"setup": "node ./hosting/scripts/setup.js && yarn && yarn bootstrap && yarn build && yarn dev", "setup": "node ./hosting/scripts/setup.js && yarn && yarn bootstrap && yarn build && yarn dev",
"bootstrap": "yarn run pre-bootstrap && lerna link && lerna bootstrap", "bootstrap": "lerna link && lerna bootstrap && ./scripts/link-dependencies.sh",
"pre-bootstrap": "./scripts/link-dependencies.sh",
"build": "lerna run build", "build": "lerna run build",
"publishnpm": "yarn build && lerna publish --force-publish", "publishnpm": "yarn build && lerna publish --force-publish",
"release": "lerna publish patch --yes --force-publish", "release": "lerna publish patch --yes --force-publish",

View File

@ -88,8 +88,8 @@ export = (permType: any, permLevel: any = null, opts = { schema: false }) =>
await builderMiddleware(ctx, permType) await builderMiddleware(ctx, permType)
// get the resource roles // get the resource roles
let resourceRoles = [], let resourceRoles: any = []
otherLevelRoles let otherLevelRoles: any = []
const otherLevel = const otherLevel =
permLevel === PermissionLevels.READ permLevel === PermissionLevels.READ
? PermissionLevels.WRITE ? PermissionLevels.WRITE