Skip to content

[Feature][EDT-1710] Make labels nullable (#537) #136

[Feature][EDT-1710] Make labels nullable (#537)

[Feature][EDT-1710] Make labels nullable (#537) #136

Workflow file for this run

name: PR Merge
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PACKAGE_SECRET }}
- name: Check cache
id: cache
uses: actions/cache@v1
with:
path: packages/sdk/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}-0
restore-keys: |
${{ runner.os }}-node-
- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://npm.pkg.github.com"
scope: "@chili-publish"
- name: install dependencies
run: yarn install
- name: run linting
run: yarn ci-lint
- name: run tests
run: yarn cover
- name: run readmeUpdater
run: yarn make-badges
- name: bump version
uses: phips28/gh-action-bump-version@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_SECRET }}
with:
version-type: 'prerelease'
skip-commit: "true"
skip-tag: "true"
# execute local js script
- name: execute local js script
run: node ./.github/scripts/replicate-version.js
- name: build code
run: yarn build
- name: publish sdk build
run: node cicd.js sdk,connectors yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.PACKAGE_SECRET }}
# execute commit script
- name: execute commit script
run: node ./.github/scripts/commit.js
- name: get new npm version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: copy file branch
run: |
path=packages/sdk/upload/latest
versionpath=packages/sdk/upload/${{ steps.package-version.outputs.current-version}}
mkdir -p ${path%"/merge"}
cp -R packages/sdk/_bundles/* ${path%"/merge"}
mkdir -p ${versionpath%"/merge"}
cp -R packages/sdk/_bundles/* ${versionpath%"/merge"}
- name: Copy to Azure Blob Storage (SDK)
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch -d sdk -s packages/sdk/upload/ --connection-string "${{ secrets.AZURE_CDN_STUDIO_DEV_CONNECTION_STRING }}" --overwrite true
- name: prepare for actions upload
run: |
node cicd.js actions node scripts/prepare-release.mjs
- name: Copy to Azure Blob Storage (Actions)
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob upload-batch -d sdk -s packages/actions/cdn/ --connection-string "${{ secrets.AZURE_CDN_STUDIO_DEV_CONNECTION_STRING }}" --overwrite true