Add pro release to release-develop
This commit is contained in:
parent
2269bf677b
commit
93c004a48c
|
@ -26,23 +26,22 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Checkout budibase-pro
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
# Add @budibase/pro to filesystem
|
||||||
|
- name: Checkout pro
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: budibase/budibase-pro
|
repository: budibase/budibase-pro
|
||||||
ref: ${{ env.branch }}
|
ref: ${{ env.branch }}
|
||||||
path: './pro'
|
path: './pro'
|
||||||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
|
|
||||||
# Can't checkout in the parent directory directly
|
|
||||||
# Just do a move afterwards instead
|
|
||||||
- name: Setup pro
|
- name: Setup pro
|
||||||
run: mv pro ../budibase-pro && cd ../budibase-pro && yarn setup
|
run: mv pro ../budibase-pro && cd ../budibase-pro && yarn setup
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: ${{ matrix.node-version }}
|
|
||||||
- run: yarn
|
- run: yarn
|
||||||
- run: yarn bootstrap
|
- run: yarn bootstrap
|
||||||
- run: yarn lint
|
- run: yarn lint
|
||||||
|
|
|
@ -4,6 +4,7 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
|
- feature/licensing
|
||||||
paths:
|
paths:
|
||||||
- '.aws/**'
|
- '.aws/**'
|
||||||
- '.github/**'
|
- '.github/**'
|
||||||
|
@ -29,6 +30,18 @@ jobs:
|
||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 14.x
|
node-version: 14.x
|
||||||
|
|
||||||
|
# Add @budibase/pro to filesystem
|
||||||
|
- name: Checkout pro
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: budibase/budibase-pro
|
||||||
|
ref: ${{ env.branch }}
|
||||||
|
path: './pro'
|
||||||
|
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
||||||
|
- name: Setup pro
|
||||||
|
run: mv pro ../budibase-pro && cd ../budibase-pro && yarn setup
|
||||||
|
|
||||||
- run: yarn
|
- run: yarn
|
||||||
- run: yarn bootstrap
|
- run: yarn bootstrap
|
||||||
- run: yarn lint
|
- run: yarn lint
|
||||||
|
@ -42,21 +55,36 @@ jobs:
|
||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
aws-region: eu-west-1
|
aws-region: eu-west-1
|
||||||
|
|
||||||
- name: Publish budibase packages to NPM
|
# - name: Publish budibase packages to NPM
|
||||||
|
# env:
|
||||||
|
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
# run: |
|
||||||
|
# # setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
|
||||||
|
# git config user.name "Budibase Staging Release Bot"
|
||||||
|
# git config user.email "<>"
|
||||||
|
# echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
|
||||||
|
# yarn release:develop
|
||||||
|
|
||||||
|
- name: 'Get Previous tag'
|
||||||
|
id: previoustag
|
||||||
|
uses: "WyriHaximus/github-action-get-previous-tag@v1"
|
||||||
|
|
||||||
|
- name: Publish @budibase/pro package to NPM
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
VERSION: ${{ steps.previoustag.outputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
|
|
||||||
git config user.name "Budibase Staging Release Bot"
|
git config user.name "Budibase Staging Release Bot"
|
||||||
git config user.email "<>"
|
git config user.email "<>"
|
||||||
|
cd ../budibase-pro
|
||||||
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
|
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
|
||||||
yarn release:develop
|
yarn release:develop $VERSION
|
||||||
|
|
||||||
- name: Build/release Docker images
|
# - name: Build/release Docker images
|
||||||
run: |
|
# run: |
|
||||||
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
# docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
||||||
yarn build
|
# yarn build
|
||||||
yarn build:docker:develop
|
# yarn build:docker:develop
|
||||||
env:
|
# env:
|
||||||
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
# DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
|
# DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
"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": "lerna link && lerna bootstrap && ./scripts/link-dependencies.sh",
|
"bootstrap": "lerna link && lerna bootstrap && ./scripts/link-dependencies.sh",
|
||||||
"build": "lerna run build",
|
"build": "lerna run build",
|
||||||
"publishnpm": "yarn build && lerna publish --force-publish",
|
|
||||||
"release": "lerna publish patch --yes --force-publish",
|
"release": "lerna publish patch --yes --force-publish",
|
||||||
"release:develop": "lerna publish prerelease --yes --force-publish --dist-tag develop",
|
"release:develop": "lerna publish prerelease --yes --force-publish --dist-tag develop",
|
||||||
"restore": "yarn run clean && yarn run bootstrap && yarn run build",
|
"restore": "yarn run clean && yarn run bootstrap && yarn run build",
|
||||||
|
|
Loading…
Reference in New Issue