name: Embedded SDK Release on: push: branches: - "master" - "[0-9].[0-9]*" jobs: config: runs-on: ubuntu-24.04 outputs: has-secrets: ${{ steps.check.outputs.has-secrets }} steps: - name: "Check for secrets" id: check shell: bash run: | if [ -n "${NPM_TOKEN}" ]; then echo "has-secrets=1" >> "$GITHUB_OUTPUT" fi env: NPM_TOKEN: ${{ (secrets.NPM_TOKEN != '') || '' }} build: needs: config if: needs.config.outputs.has-secrets runs-on: ubuntu-24.04 defaults: run: working-directory: superset-embedded-sdk steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 with: node-version-file: './superset-embedded-sdk/.nvmrc' registry-url: 'https://registry.npmjs.org' - run: npm ci - run: npm run ci:release env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}