From 298e608442ac5e8c15aa61c01411585e57732f4a Mon Sep 17 00:00:00 2001 From: Baptiste Leproux Date: Fri, 5 Jul 2024 17:38:27 +0200 Subject: [PATCH] feat(ci): nightly --- .github/workflows/nightly.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/nightly.yml diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml new file mode 100644 index 00000000..305ec458 --- /dev/null +++ b/.github/workflows/nightly.yml @@ -0,0 +1,36 @@ +name: Publish Supabase (Nightly) +on: + push: + branches: + - main +jobs: + nightly: + strategy: + matrix: + os: [ubuntu-latest] + node: [20] + + runs-on: ${{ matrix.os }} + permissions: + id-token: write + steps: + - name: Checkout + uses: actions/checkout@v4 # v4 + - name: Add pnpm + run: corepack enable + - uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: "https://registry.npmjs.org/" + cache: "pnpm" + - name: Install dependencies + run: pnpm install + - name: Prepare + run: pnpm dev:prepare + - name: Build + run: pnpm build + - name: Release Nightly + run: pnpm changelogen --bump --canary --publish --publishTag nightly + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} + NPM_CONFIG_PROVENANCE: true