2022-02-03 17:01:45 -05:00
|
|
|
name: Embedded SDK Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
|
|
|
|
jobs:
|
2023-04-14 11:23:00 -04:00
|
|
|
config:
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
outputs:
|
|
|
|
has-secrets: ${{ steps.check.outputs.has-secrets }}
|
|
|
|
steps:
|
|
|
|
- name: "Check for secrets"
|
|
|
|
id: check
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
if [ -n "${{ (secrets.NPM_TOKEN != '') || '' }}" ]; then
|
|
|
|
echo "has-secrets=1" >> "$GITHUB_OUTPUT"
|
|
|
|
fi
|
|
|
|
|
2022-02-03 17:01:45 -05:00
|
|
|
build:
|
2023-04-14 11:23:00 -04:00
|
|
|
needs: config
|
|
|
|
if: needs.config.outputs.has-secrets
|
2022-02-03 17:01:45 -05:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: superset-embedded-sdk
|
|
|
|
steps:
|
2023-04-14 11:23:00 -04:00
|
|
|
- uses: actions/checkout@v3
|
2023-05-02 01:59:00 -04:00
|
|
|
- uses: actions/setup-node@v3
|
2022-02-03 17:01:45 -05:00
|
|
|
with:
|
|
|
|
node-version: "16"
|
|
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run ci:release
|
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|